Alerting

Email Alert Setup if Splunk is down in Production

nikhilagrawal
Path Finder

Anybody can suggest how to setup email alerts if Splunk service is down. I am trying to configure alerts in a way so we get email alert if service is down.

Any sort of help will be appreciated.

Thanks
Nik

Tags (2)
0 Karma

yannK
Splunk Employee
Splunk Employee

Who will watch the watchmen.

You may want to use a third party script or tool to check that the splunkd process is up and running

  • a simple /opt/splunk/bin/splunk status should do the trick

  • or a search on last 5 minutes
    /opt/splunk/bin/splunk search "earliest=-5m index=* | stats count | eval status=if(count>0,'OK','ERROR')" -auth user:password

  • or a separate search-head, checking the number of events.

yannK
Splunk Employee
Splunk Employee

those have to used in a script that will check the result

  • this status command will show you if splunk is running
  • and the search will show you is events from the last 5 minutes are searchable.

If you want to check if the process is running, then you need a ps script or a monitor. please contact your system administrator, this is his job.

Dark_Ichigo
Builder

What does this: /opt/splunk/bin/splunk search "earliest=-5m index=* | stats count | eval status=if(count>0,'OK','ERROR')" -auth user:password

Do? and if I turn this into a script that checks for it, will this do the trick?

0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

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 ...