→ 🚀What's New? Join Us for the Fall Product Launch! Register Now !
‎12-30-2014 08:18 AM
Solved! Go to Solution.
‎01-05-2015 03:59 PM
Select Top 1000000 tblNtlogSource.Sourcename As EventSource,
tblAssets.AssetID,
Count(tblNtlog.EventlogID) As EventCount
From tblAssets
Inner Join tblNtlog On tblAssets.AssetID = tblNtlog.AssetID
Inner Join tblNtlogSource On tblNtlogSource.SourcenameID =
tblNtlog.SourcenameID
Where tblAssets.AssetName = 'YourServer ' And tblNtlog.TimeGenerated >
GetDate() -7
Group By tblNtlogSource.Sourcename,
tblAssets.AssetID
Order By EventCount Desc
‎01-09-2015 11:25 AM
Select Top 1000000 tsysOS.Image As icon,
tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Domain,
tblAssets.IPAddress,
tblAssets.Firstseen,
tblAssets.Lastseen,
tblAssets.Lasttried,
tblNtlog.Eventcode,
tblNtlog.TimeGenerated,
Case tblNtlog.Eventtype When 1 Then 'error' When 2 Then 'warning'
When 3 Then 'information' When 4 Then 'success audit'
When 5 Then 'failure audit' End As Eventtype,
tblNtlogFile.Logfile,
tblNtlogSource.Sourcename,
tblNtlogMessage.Message,
tblNtlogUser.Loguser
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysOS On tsysOS.OScode = tblAssets.OScode
Inner Join tblNtlog On tblAssets.AssetID = tblNtlog.AssetID
Inner Join tblNtlogFile On tblNtlogFile.LogfileID = tblNtlog.LogfileID
Inner Join tblNtlogMessage On tblNtlogMessage.MessageID = tblNtlog.MessageID
Inner Join tblNtlogSource On tblNtlogSource.SourcenameID =
tblNtlog.SourcenameID
Inner Join tblNtlogUser On tblNtlogUser.LoguserID = tblNtlog.LoguserID
Where tblAssets.AssetName = 'YourServer ' And tblNtlog.TimeGenerated > GetDate() - 7
And tblAssetCustom.State = 1
Order By tblNtlog.TimeGenerated Desc
‎01-06-2015 03:37 PM
‎01-05-2015 03:59 PM
Select Top 1000000 tblNtlogSource.Sourcename As EventSource,
tblAssets.AssetID,
Count(tblNtlog.EventlogID) As EventCount
From tblAssets
Inner Join tblNtlog On tblAssets.AssetID = tblNtlog.AssetID
Inner Join tblNtlogSource On tblNtlogSource.SourcenameID =
tblNtlog.SourcenameID
Where tblAssets.AssetName = 'YourServer ' And tblNtlog.TimeGenerated >
GetDate() -7
Group By tblNtlogSource.Sourcename,
tblAssets.AssetID
Order By EventCount Desc
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now