Splunk Cloud Platform

Splunk Alerts with no alert actions

python
Explorer

Hi,

How can i query Alerts without alert actions and i want to see also the status. 

Labels (1)
0 Karma

python
Explorer

how about alerts with no triggered actions?

0 Karma

python
Explorer

Thanks a lot. 

richgalloway
SplunkTrust
SplunkTrust

You can query all alerts using this REST command.  Filter the results to find the information you seek.

| rest splunk_server=local /servicesNS/-/-/saved/searches
| search alert_type!="always"
---
If this reply helps you, Karma would be appreciated.

python
Explorer

how about alerts with no triggered actions?

0 Karma

richgalloway
SplunkTrust
SplunkTrust

To find alerts that have not triggered, try this query

| rest /servicesNS/-/-/saved/searches splunk_server=local
| fields title disabled triggered_alert_count alert.severity alert.track eai:acl.app
| rename alert.track as isAlert, eai:acl.app as App
| eval TriggerCount=coalesce(triggered_alert_count, 0)
| where disabled=0 AND TriggerCount=0 AND isAlert=1
| table title alert.severity App
---
If this reply helps you, Karma would be appreciated.
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

[Puzzles] Solve, Learn, Repeat: Character substitutions with Regular Expressions

This challenge was first posted on Slack #puzzles channelFor BORE at .conf23, we had a puzzle question which ...

Splunk Community Badges!

  Hey everyone! Ready to earn some serious bragging rights in the community? Along with our existing badges ...

[Puzzles] Solve, Learn, Repeat: Matching cron expressions

This puzzle (first published here) is based on matching timestamps to cron expressions.All the timestamps ...