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!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...