Reporting

Disable splunk alert via CLI

SS1
Path Finder

Hi,

We can disable the alert via command line with below command, but this doesnt work if the alert name has spaces in it.

curl -k -u admin https://<host>:<mgmt_port>/servicesNS/<user_context>/<app_context>/saved/searches/<search>/disable -X POST

I have a splunk alert Application Down Alert (Alert name has spaces in it)

How do i disable this alert via commandline.

 

Labels (5)
0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

Assuming you've already tried putting quotation marks around the URL, try urlencoding it by replacing the spaces with %20

---
If this reply helps you, Karma would be appreciated.

View solution in original post

0 Karma

SS1
Path Finder

Thanks @richgalloway %20 worked fine for me.

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Assuming you've already tried putting quotation marks around the URL, try urlencoding it by replacing the spaces with %20

---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...