Forum Discussion
Racheal200
Mar 01, 2021Copper Contributor
How to get last status of the service in Event Logs without selecting TimeRange
HI, My requirement is to find the status of few windows services whether its running/stopped/started. Events will capture only the last state of the service so cannot see logs if there is no ch...
- Mar 01, 2021This would return the last row of data - using arg_max()
Event
| where EventLog == 'System' and EventID == 7036
| summarize arg_max(TimeGenerated,*)
CliveWatson
Mar 02, 2021Former Employee
Racheal200
Mar 02, 2021Copper Contributor
CliveWatson Thanks ! I already tried this option but not useful to my scenerio.
Again here there is no option to select last 3 Months .I have to choose a time range and cannot use the query as it is which already have time range to check last 3 months data.
- CliveWatsonMar 17, 2021Former EmployeeYou should have the updated solution I showed in your subscription now: https://techcommunity.microsoft.com/t5/azure-monitor/enhanced-dashboard-experiences-for-azure-monitor-log-analytics/ba-p/2176979