Alerting

Alerts check neighbor sites. if same location one host is 2 host are down trigger

Splunk_rocks
Path Finder

Hello Splunkers,

I have following uniq fields in search results radioid, radiostatus, region

I need to write alerts to like this Action:
1.) If only one radio status changed to “down” within the same geographic area.
Open Ticket with severity “Major” and proceed with Troubleshooting.
2.) If two or more radio status changed to “down” within the same geographic area.
Open Ticket with severity “Critical” and proceed with Troubleshooting.

any help will be much appreciated .

Tags (1)
0 Karma

koshyk
Super Champion

Sample data would have been great. Also it is important, you scan for a specific period of time

Assuming, below is a sample set of data and you look for 1 hour time span

radioid=101 radiostatus=down region=Europe
radioid=102 radiostatus=up region=Europe
radioid=103 radiostatus=down region=Europe
radioid=104 radiostatus=down region=America

Sample test search

|makeresults
|eval raw_data="radioid=101 radiostatus=down region=Europe; radioid=102 radiostatus=up region=Europe; radioid=103 radiostatus=down region=Europe; radioid=104 radiostatus=down region=America"
| makemv  delim=";" raw_data
| mvexpand raw_data| rename raw_data as _raw
| extract pairdelim="\n" kvdelim="="
| search radiostatus=down
| stats count(radiostatus) as radiostatus_down_count by region
| eval severity=if(radiostatus_down_count>1,"Critical","Major")

cheers

0 Karma

Splunk_rocks
Path Finder

Thank you for quick help,
But i have more then 1000 radios devices all im doing is check status of field results and trying to work

0 Karma

koshyk
Super Champion

if you post sample data, we can write the query.
the above core logic will work for millions of events. I've just provided a sample

0 Karma
Get Updates on the Splunk Community!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...