Alerting

Create alert for a new server process

ryanaud
New Member

I'm trying to find a way to create an alert if a new process has been started.
My old solution would learn the processes running on my servers for 15 days, then if a new process was started after the 15 days it would alert me to let me know. Then after that it wouldn't alert me again unless there was a 15-day gap.

For example, if I launch Google Chrome on a server every 16 days, I would get an alert letting me know the process was started.

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi,
You have to create a lookup (e.g. Processes.csv).
Schedule a search to populate lookup:
Your_search earliest=-15d latest= now
| dedup processes
| table process
| outputlookup Processes.csv
In this way you have a list of all processes in last 15 days.
After you can run you search
Your_search NOT [| inputlookup Processes.csv | fields process]
And use it For an alert.
To extract processes you have to create a script with ps command.
Bye.
Giuseppe

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...