If do the following search for the past four days and deliberately leave out "| where _txn_orphan=1" to see the total number of EventCode=1100, I get 5 results for EventCode=1100:
index=wineventlog source="WinEventLog:Security" host=workstation1 ((EventCode=1100 body="The event logging service has shut down.") OR (EventCode=4608 ) )
| transaction startswith=eval(EventCode=1100) endswith=eval(EventCode=4608) maxspan=1m keeporphans=true
| eval Time=strftime(_time, "%b %d %H:%M:%S")
| table Time, EventCode, host,body,action
| rename body to "Event Message", action to "Final Action", host to "Host Name", Time to "Time of Event"
The following results of the above search show EventCode=1100 as an "orphan" five times:
Time of Event
EventCode
Host Name
Event Message
Final Action
Oct 22 23:02:07 1100
4608 WORKSTATION1 The event logging service has shut down.
Windows is starting up. This event is logged when LSASS.EXE starts and the auditing subsystem is initialized. stopped
success
Oct 22 23:02:07 1100
4608 WORKSTATION1 The event logging service has shut down.
Windows is starting up. This event is logged when LSASS.EXE starts and the auditing subsystem is initialized. stopped
success
Oct 22 23:02:07 1100 WORKSTATION1 The event logging service has shut down. stopped
Oct 22 23:02:07 1100 WORKSTATION1 The event logging service has shut down. stopped
Oct 22 23:02:07 1100 WORKSTATION1 The event logging service has shut down. stopped
Oct 22 01:14:47 1100
4608 WORKSTATION1 The event logging service has shut down.
Windows is starting up. This event is logged when LSASS.EXE starts and the auditing subsystem is initialized. stopped
success
Oct 22 01:14:47 1100 WORKSTATION1 The event logging service has shut down. stopped
Oct 21 01:14:37 1100
4608 WORKSTATION1 The event logging service has shut down.
Windows is starting up. This event is logged when LSASS.EXE starts and the auditing subsystem is initialized. stopped
success
Oct 21 01:14:37 1100 WORKSTATION1 The event logging service has shut down. stopped
And, if I do the streamstats version of the search below, I get 7 results for EventCode=1100.
index=wineventlog source="WinEventLog:Security" host=workstation1 ((EventCode=1100 body="The event logging service has shut down.") OR (EventCode=4608 ) )
| streamstats count BY host reset_after=(EventCode=1100) time_window=1m
| search EventCode=1100 count=1
| eval Time=strftime(_time, "%b %d %H:%M:%S")
| table Time, EventCode, host,body,action
| rename body to "Event Message", action to "Final Action", host to "Host Name", Time to "Time of Event"
I'm doing the search for the same time. Why are the results of the search different as far as the number of EventCode=1100 is concerned?
... View more