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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...