Splunk Search

To check if service of endpoint starts back once stopped

DawoodKhanUlex
Engager

Hi Folks,

 

I am working on creating an alert for endpoint where we have to check if its service came up after it got stop during upgrade.

For eg: - Host A service stop and didnt came up for 3 days then an alert will be triggered.

Also we can compare on basis of filedname state=Stopped and state=Running, but host should be same

Please let me know if there is any way we can create alert for this scenario

Thanks,

Labels (1)
0 Karma

diogofgm
SplunkTrust
SplunkTrust

Have you tried something like this?

<your base search>
| stats last(state) AS state last(_time) AS _time by host service
| eval time_diff = now() - _time
| where (state="Stopped" AND time_diff > 259200)

 

 

------------
Hope I was able to help you. If so, some karma would be appreciated.
Get Updates on the Splunk Community!

CX Day is Coming!

Customer Experience (CX) Day is on October 7th!! We're so excited to bring back another day full of wonderful ...

Strengthen Your Future: A Look Back at Splunk 10 Innovations and .conf25 Highlights!

The Big One: Splunk 10 is Here!  The moment many of you have been waiting for has arrived! We are thrilled to ...

Now Offering the AI Assistant Usage Dashboard in Cloud Monitoring Console

Today, we’re excited to announce the release of a brand new AI assistant usage dashboard in Cloud Monitoring ...