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
Get Updates on the Splunk Community!

Enhance Security Visibility with Splunk Enterprise Security 7.1 through Threat ...

(view in My Videos)Struggling with alert fatigue, lack of context, and prioritization around security ...

Troubleshooting the OpenTelemetry Collector

  In this tech talk, you’ll learn how to troubleshoot the OpenTelemetry collector - from checking the ...

Adoption of Infrastructure Monitoring at Splunk

  Splunk's Growth Engineering team showcases one of their first Splunk product adoption-Splunk Infrastructure ...