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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...