Splunk Search

How to search Windows Security Event Logs for MS Office child/grandchild process names?

johnmccash
Explorer

Hi,

I'd like to be able to write a search to identify processes that are children or grandchildren of MS Office application processes, and which start up within 60 seconds of that application being launched. Windows Security Event log 4688 process start events contain the computer name, process ID, and new process ID, so it ought to be possible to extract this information, but I'm not sure how to write a search that properly connects parent processes with their children. I suppose you could do it with 'map', but that would involve a separate search for every office process that starts up (a couple of hundred per minute, across my enterprise network).

Any thoughts on the appropriate way to do this?

Thanks
John

0 Karma

sundareshr
Legend

Try this pseudo code

base search | stats list(newprocessid) as npid list(_time) as t by creatorprocessid | eval z=mvzip(npid, t) | rex field=z "^(?<npid>[^,]+),(?<t>.*)" | streamstats window=1 current=f latest(t) as nextpid by Creator_Process_ID | eval diff=t-nextpid | table * diff | where diff<60 | fieldformat t=strftime(t, "%x %X")
0 Karma
Get Updates on the Splunk Community!

Index This | Why did the turkey cross the road?

November 2025 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  &#x1f680; Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Feel the Splunk Love: Real Stories from Real Customers

Hello Splunk Community,    What’s the best part of hearing how our customers use Splunk? Easy: the positive ...