Splunk Dev

Anyone have a good search to determine if an app has stopped across 4k machines?

daniel333
Builder

All,

I have the PS input from Splunk for Unix enabled on all endpoints. Seems to be there should be an easy way to check running status of a process from 15 minutes ago to now and get a list of machines where the app has stopped.

thanks
-Daniel

edit: Here is what I came up with, but I figure there should be a better way to to this

index=os "auditbeat-god" sourcetype=ps earliest=-60m@m latest=-30m@m 
| fields host 
| dedup host 
| table host
| append [ search 
index=os "auditbeat-god" sourcetype=ps earliest=-30m@m latest=now 
| fields host 
| dedup host 
| table host 
]
| stats count by host
| where count < 2
Tags (1)
0 Karma

diogofgm
SplunkTrust
SplunkTrust

Just search for the last hour and use

index=os "auditbeat-god" sourcetype=ps | timechart span=30m count by host

------------
Hope I was able to help you. If so, some karma would be appreciated.
0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...