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!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

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