Getting Data In

How to clone a saved search via REST API command? Is there documentation on this?

bleung93
Path Finder

How would I clone a saved search via the REST API? I do not see any documentation in the REST API endpoints regarding copy/clone existing saved searches. http://docs.splunk.com/Documentation/Splunk/6.1.3/RESTAPI/RESTsearch#saved.2Fsearches.2F.7Bname.7D.2...

0 Karma

Ledion_Bitincka
Splunk Employee
Splunk Employee

Cloning is basically making a copy of the object but changing the name/id. There is no "clone" action in Splunk's REST API, however the following steps outline how to clone any object from the REST endpoints:

  1. GET the object you want to clone
  2. change the name of the object
  3. POST the object back to the endpoint

somesoni2
Revered Legend

Not sure if cloning operation can be done from REST API. I would be interested if anyone knows a way to do it.

0 Karma
Get Updates on the Splunk Community!

Detecting Remote Code Executions With the Splunk Threat Research Team

REGISTER NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If ...

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...