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!

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...