Alerting

how can I do to create one search when I can see the severity of the alert?

samir_silva
New Member

Hello.

Can you help me?

how can I do to create one search when I can see the severity of the alert?

for example:

Alert severity count
Brute Force High 45
PortScan low 42
Create User info 2
Delete User medium 15

Thanks
alt text
alt text

Tags (2)
0 Karma

gcato
Contributor

Hi Samir,

You can use the REST API to get this result. For example:

| rest /services/alerts/fired_alerts/-
 |stats sum(triggered_alerts) AS count BY savedsearch_name, severity
 |eval severity = case(severity==1, "Info",
                       severity==2, "Low",
                       severity==3, "Medium",
                       severity==4, "High",
                       severity==5, "Critical")
 |rename savedsearch_name AS Alert
 |table Alert severity count

Hope this helps.

samir_silva
New Member

Tranks for help,

My finish search.

| rest https://localhost:8089/servicesNS/your-user/-/alerts/fired_alerts/- |stats sum(triggered_alerts) AS count BY savedsearch_name, severity
|eval severity = case(severity==1, "Info",
severity==2, "Low",
severity==3, "Medium",
severity==4, "High",
severity==5, "Critical")
|rename savedsearch_name AS Alert
|table Alert severity count
|sort - count

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