All Apps and Add-ons

How to monitor and alert when a certain process launches on a Windows 7 machine?


I need to monitor and alert on a single process on a single Windows 7 machine. All I need to alert on is when it launches. Is there an easy way to do this within Splunk? I know I can do process monitoring via the Windows Infrastructure app, but I don't see any way to limit the collection to a single process, etc. I also really don't care about performance details.



0 Karma


Use powershell:

Get-Process yourprocessname | Select-Object YourListOfProperties


script = Get-Process  YOURPROCESSNAME | Select-Object Handles, NPM, PM, WS, VM, Id, ProcessName, @{n="SplunkHost";e={$Env:SPLUNK_SERVER_NAME}}
schedule = 0 */5 * ? * *
sourcetype = Windows:Process

PowerShell is natively supported on 6.3, if not you need an app:

0 Karma
State of Splunk Careers

Access the Splunk Careers Report to see real data that shows how Splunk mastery increases your value and job satisfaction.

Find out what your skills are worth!