Splunk Dev

Create search shows hosts status from Down to up

khalidewaidah
Explorer

We need to send alert shows if hosts status change from down to up please help me how we can do this

Tags (1)
0 Karma

woodcock
Esteemed Legend

Generally, like this:

index=YouShouldAlwaysSpecifyAnIndex sourcetype=AndSourcetypeToo
| dedup host status
| search status="up"

Save this as an alert with When event count and Is greater than 0

0 Karma

niketn
Legend

Provide examples from the events/logs that you are planning to leverage.

Refer to the following answer for several ways you can do it including one where you can check for Last Phone Home time for each host using REST service call: https://answers.splunk.com/answers/525926/how-do-we-determine-whether-a-forwarder-phoned-hom.html

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma
Get Updates on the Splunk Community!

Get ready to show some Splunk Certification swagger at .conf24!

Dive into the deep end of data by earning a Splunk Certification at .conf24. We're enticing you again this ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Now On-Demand Join us to learn more about how you can leverage Service Level Objectives (SLOs) and the new ...

Database Performance Sidebar Panel Now on APM Database Query Performance & Service ...

We’ve streamlined the troubleshooting experience for database-related service issues by adding a database ...