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!

3 Ways to Make OpenTelemetry Even Better

My role as an Observability Specialist at Splunk provides me with the opportunity to work with customers of ...

What's New in Splunk Cloud Platform 9.2.2406?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.2.2406 with many ...

Enterprise Security Content Update (ESCU) | New Releases

In August, the Splunk Threat Research Team had 3 releases of new security content via the Enterprise Security ...