Splunk Search

filtering for events occurring seconds before and after a given windows eventID

mikefoti
Communicator

I would like to filter for events that occurred immediately before and after a given windows eventID. For example, if Windows Eventid 1234 occurs every so often, how can I create a filter, or grouping or transaction consisting of just the event with that eventID plus the 2 or 3 event before and after it?

Tags (1)
0 Karma

mikefoti
Communicator

I may be getting close... but would very much appreciate feedback... am I on the right track?

For now my goal has been scaled back to discovering what events occurred on servers 1, 2 & 3 at the same time as the event with eventID=15223. Later I will want to improve this to find events occurring within 1 second of this event.

host="server1" OR host="server2" OR host="server3" [search host="server1" OR host="server2" OR host="server3" winEventVwrEventID="15223" | fields + winEventVwrEventTIME]
0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...