‎04-18-2017 02:21 PM
Solved! Go to Solution.
‎04-20-2017 09:10 AM
Select Top 1000000
tblAssets.AssetName,
COUNT(tblNtlogMessage.MessageID) as [Times Occured],
MAX(tblNtlog.TimeGenerated) as [Last Event]
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
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
Inner Join tsysOS On tsysOS.OScode = tblAssets.OScode
Left Join tsysIPLocations On tsysIPLocations.StartIP <= tblAssets.IPNumeric And tsysIPLocations.EndIP >= tblAssets.IPNumeric
Where
tblNtlogMessage.Message Like '%BlueScreen%' And
tblNtlogSource.Sourcename Like 'Windows Error Reporting' And
tblAssetCustom.State = 1
Group by tblAssets.AssetName
Order By [Last Event] Desc
‎04-20-2017 09:10 AM
Select Top 1000000
tblAssets.AssetName,
COUNT(tblNtlogMessage.MessageID) as [Times Occured],
MAX(tblNtlog.TimeGenerated) as [Last Event]
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
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
Inner Join tsysOS On tsysOS.OScode = tblAssets.OScode
Left Join tsysIPLocations On tsysIPLocations.StartIP <= tblAssets.IPNumeric And tsysIPLocations.EndIP >= tblAssets.IPNumeric
Where
tblNtlogMessage.Message Like '%BlueScreen%' And
tblNtlogSource.Sourcename Like 'Windows Error Reporting' And
tblAssetCustom.State = 1
Group by tblAssets.AssetName
Order By [Last Event] Desc
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now