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!

Detecting Remote Code Executions With the Splunk Threat Research Team

REGISTER NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If ...

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...