Dashboards & Visualizations

how to search for no. of active alerts through search and Reporting

priyankara
New Member

I am trying to search for the no. of active alerts which are there is the system for my index and sources by splunk query language to be run on Search and Reporting App, how can I go about this ?

Tags (1)
0 Karma

kamlesh_vaghela
SplunkTrust
SplunkTrust

@priyankara

You can use rest command for having a list of savedsearches and other details.

https://docs.splunk.com/Documentation/Splunk/8.0.0/SearchReference/Rest

You can use below search for reference. You need to modify as per your requirement. This search will list all the enabled savedsearches.

| rest /servicesNS/-/-/saved/searches splunk_server=local | search disabled=0  

UPDATED:

Please try this search.

| rest /servicesNS/-/-/saved/searches splunk_server=local 
| search "alert.suppress" IN (1,0) AND  disabled=0 
| table title disabled "eai:acl.app" "eai:acl.owner" search

Thanks

0 Karma

priyankara
New Member

@kamlesh_vaghela
Thanks Kamlesh but I am looking for a query to get the active alerts which are active in the system.

0 Karma

kamlesh_vaghela
SplunkTrust
SplunkTrust

@priyankara

Please check my UPDATED answer.

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Thanks for the Memories! Splunk University, .conf25, and our Community

Thank you to everyone in the Splunk Community who joined us for .conf25, which kicked off with our iconic ...

Data Persistence in the OpenTelemetry Collector

This blog post is part of an ongoing series on OpenTelemetry. What happens if the OpenTelemetry collector ...

Introducing Splunk 10.0: Smarter, Faster, and More Powerful Than Ever

Now On Demand Whether you're managing complex deployments or looking to future-proof your data ...