Splunk Dev

Splunk api for updating dashboard content

sansmish
Engager

I want to retrieve ,update or delete service codes on Splunk dashboard so that I can use the same format of dashboard for any service by just changing service numbers.Has Splunk provided any apis to retrieve update or delete Splunk dashboard content?

Labels (1)
Tags (1)
0 Karma

kamlesh_vaghela
SplunkTrust
SplunkTrust

@sansmish 

Yes. Please go through below for same,

https://docs.splunk.com/Documentation/Splunk/8.2.0/RESTREF/RESTknowledge#data.2Fui.2Fviews

Test the api using below curl command.

curl -ku admin:changeme https://localhost:8089/servicesNS/admin/search/data/ui/views/ -d 'name=newdash' -d 'eai:data=<put your xml here>'

 

Thanks
KV
▄︻̷̿┻̿═━一

If any of my reply helps you to solve the problem Or gain knowledge, an upvote would be appreciated. 

Get Updates on the Splunk Community!

[Puzzles] Solve, Learn, Repeat: Dynamic formatting from XML events

This challenge was first posted on Slack #puzzles channelFor a previous puzzle, I needed a set of fixed-length ...

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  &#x1f680; Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Stronger Security with Federated Search for S3, GCP SQL & Australian Threat ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...