Splunk Dev

Splunk python SDK to find stale alerts

RS
Engager

By using Splunk python SDK API, is there a way to find list of all Splunk alerts which have not been triggered for specified period of time? The basic idea is to run such report on regular basis and alert users on alerts which are just sitting there for specified period of time so that those alerts can be modified etc. Thanks

Labels (1)
0 Karma
1 Solution

gjanders
SplunkTrust
SplunkTrust

In Alerts for Splunk Admins

or direct link to github https://github.com/gjanders/SplunkAdmins/blob/master/default/savedsearches.conf

There is an alert called "SearchHeadLevel - Alerts that have not fired an action in X days"

You could run a search like that or trigger the report or similar via the SDK/REST API. That said alerts will generally run, if they never fire an action then that might be a criteria to check if they are still valid/in use

View solution in original post

0 Karma

gjanders
SplunkTrust
SplunkTrust

In Alerts for Splunk Admins

or direct link to github https://github.com/gjanders/SplunkAdmins/blob/master/default/savedsearches.conf

There is an alert called "SearchHeadLevel - Alerts that have not fired an action in X days"

You could run a search like that or trigger the report or similar via the SDK/REST API. That said alerts will generally run, if they never fire an action then that might be a criteria to check if they are still valid/in use

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...