Alerting

I have created an alert and setup email for it but its not working

shreyasathavale
Communicator

I have created the following alert (using UI or Alert Manager) and have set alert mail on condition warning > 0 which is working fine.

earliest=-2h environment=Test Severity=Error|stats count as warning by Message,_time |sort _time desc

Now i want the mail format to be in tabular form so i modified the search to below with same alert condition:

earliest=-2h environment=Test Severity=Error|stats count as warning by Message,_time |sort _time desc|table Message,_time

But the 2nd search is not generating an alert mail.
Any idea on this will be helpful

Tags (2)
0 Karma
1 Solution

stephanefotso
Motivator

If your condition is warning > 0 , warning must be one of your table outputs. Try this and let me know

earliest=-2h environment=Test Severity=Error|stats count as warning by Message,_time |sort _time desc|table Message,_time, warning
SGF

View solution in original post

stephanefotso
Motivator

If your condition is warning > 0 , warning must be one of your table outputs. Try this and let me know

earliest=-2h environment=Test Severity=Error|stats count as warning by Message,_time |sort _time desc|table Message,_time, warning
SGF

shreyasathavale
Communicator

Thanks..will try it..

0 Karma

stephanefotso
Motivator

ok. Iet me know if any issue.

SGF
0 Karma

shreyasathavale
Communicator

Had tried that too previously but was not working. Created the same alert using savedsearch and it worked 🙂

0 Karma

shreyasathavale
Communicator

search is returning values but still not sending an email.. 😞 rather have got a blank mail without results in mail

0 Karma

stephanefotso
Motivator

ok now, at the alert action screen, include an inline Table .

SGF
0 Karma
Get Updates on the Splunk Community!

Splunk + ThousandEyes: Correlate frontend, app, and network data to troubleshoot ...

 Are you tired of troubleshooting delays caused by siloed frontend, application, and network data? We've got a ...

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI!Discover how Splunk’s agentic AI ...

🔐 Trust at Every Hop: How mTLS in Splunk Enterprise 10.0 Makes Security Simpler

From Idea to Implementation: Why Splunk Built mTLS into Splunk Enterprise 10.0  mTLS wasn’t just a checkbox ...