Getting Data In

Syntax to update my scheduled search using REST?

the_wolverine
Champion

I'm trying to update the max_concurrent instances on my scheduled search from the default of 1 to 2. But the REST command doesn't appear to be working.

curl -k -u admin:changeme https://splunk:8089/servicesNS/admin/search/saved/searches/test_search -d 'max_concurrent=2' -d sharing=app

(Note: the url is correct)

Can someone spot the issue in my curl command?

0 Karma

somesoni2
Revered Legend

Try without the single quotes for max_concurrent as well.

curl -k -u admin:changeme https://splunk:8089/servicesNS/admin/search/saved/searches/test_search -d max_concurrent=2 -d sharing=app
0 Karma

the_wolverine
Champion
<?xml version="1.0" encoding="UTF-8"?>
<response>
  <messages>
    <msg type="ERROR">
 In handler 'savedsearch': Argument "sharing" is not supported by this handler.</msg>
  </messages>
</response>
0 Karma

ben_leung
Builder

Is the argument not applicable when modifying a system configuration?

0 Karma
Get Updates on the Splunk Community!

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

April 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...