Alerting

I want to see the list of alerts which were fired yesterday and the hosts affected from respective alert ? Please help me with this

sandyIscream
Communicator

In the results tab I want to see the columns for Alert name, Hosts affected for each alert, IP of that host, Triggered Time and Count

Tags (1)
0 Karma

cmerriman
Super Champion

something like this might get you close:

index="_internal" sourcetype="scheduler" alert_actions=email
            | eval scheduled=strftime(scheduled_time, "%Y-%m-%d %H:%M:%S") 
            | eval dispatch_time=strftime(dispatch_time, "%Y-%m-%d %H:%M:%S") 
            | stats values(scheduled) as scheduled
                    values(dispatch_time) as dispatched
                    values(host) as host
                    values(status) as status
                    values(run_time) as run_time 
                    values(result_count) as result_count
                    values(sid) as sid
                    by _time,savedsearch_name |  sort -scheduled 

sandyIscream
Communicator

This isn't what i was looking for. this will give the list of alerts which were fired yesterday but I want the hosts which are affected for each alert.

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