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!

Splunk Up Your Game: Why It's Time to Embrace Python 3.9+ and OpenSSL 3.0

Did you know that for Splunk Enterprise 9.4, Python 3.9 is the default interpreter? This shift is not just a ...

See your relevant APM services, dashboards, and alerts in one place with the updated ...

As a Splunk Observability user, you have a lot of data you have to manage, prioritize, and troubleshoot on a ...

Cultivate Your Career Growth with Fresh Splunk Training

Growth doesn’t just happen—it’s nurtured. Like tending a garden, developing your Splunk skills takes the right ...