Alerting

A smart way to disable email alert for all saved searches

shangshin
Builder

Hi,
I have hundreds of saved searches for monitors running in the search heads frequently 24 * 7. Is there a way to disable all email alert for all saved searches when I am doing maintenance work on the indexers e.g. restarting. It's quite annoying to get false alarms due to failed searches.

Thanks in advance.

Tags (2)
1 Solution

lukejadamec
Super Champion

Yes. Go to Manager >> System Settings >> Email alert settings and remove the Mail Host information (just remember what it was so you can put it back when you're done).

View solution in original post

eric_chg
Loves-to-Learn Lots

Question : Empty entry at Mail host field and require any service restarting after saved "Mail Server settings" ?

0 Karma

eric_chg
Loves-to-Learn Lots

Question : Remove "Mail host" record and require any service restarting after saved ?

0 Karma

lukejadamec
Super Champion

Yes. Go to Manager >> System Settings >> Email alert settings and remove the Mail Host information (just remember what it was so you can put it back when you're done).

MuS
Legend

Take a look at this answer http://answers.splunk.com/answers/65828/inhibiting-alerts-from-saved-searches-that-had-search-errors...

It was valid for all pre Splunk 6 sendemail.py scripts. For the Splunk 6.x scripts I have to test it first.

0 Karma

shangshin
Builder

Make sense. So it will require change on the python script that is used to send email.

E.g. Exit the email python program is the message Level is ERROR

0 Karma

lukejadamec
Super Champion

In the case of failed searches I believe it has to do with the trigger for the alert, but I'll have to test it.

0 Karma

shangshin
Builder

Thank you. I just gave it a try and it's working. This can be used for planned change.
I wish there is a way that email alert won't go out to the recipients due to failed search.

0 Karma
Get Updates on the Splunk Community!

.conf25 Registration is OPEN!

Ready. Set. Splunk! Your favorite Splunk user event is back and better than ever. Get ready for more technical ...

Detecting Cross-Channel Fraud with Splunk

This article is the final installment in our three-part series exploring fraud detection techniques using ...

Splunk at Cisco Live 2025: Learning, Innovation, and a Little Bit of Mr. Brightside

Pack your bags (and maybe your dancing shoes)—Cisco Live is heading to San Diego, June 8–12, 2025, and Splunk ...