Forum Discussion

Racheal200's avatar
Racheal200
Copper Contributor
Mar 01, 2021
Solved

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...
  • CliveWatson's avatar
    Mar 01, 2021
    This would return the last row of data - using arg_max()


    Event
    | where EventLog == 'System' and EventID == 7036
    | summarize arg_max(TimeGenerated,*)