Splunk Enterprise

Splunk API calls for dashboard definition

sansmish
Engager

I am trying to access my dashboard definition as an xml file for which I'm using Splunk rest apis but I'm always getting error:404 object not found /action forbidden 

curl -ku "<username>:<password>" https://<host>/servicesNS/<adminof app>/<appname>/data/ui/views/<dashboardname>

even if I generate session key for attaching in header field of calls ,it's throwing the same error.

What could be the possible reasons?

Labels (1)
0 Karma

kamlesh_vaghela
SplunkTrust
SplunkTrust

@sansmish 

May be port issue.It should be management port.

 

curl -ku "<username>:<password>" https://<host>:8089/servicesNS/<adminof app>/<appname>/data/ui/views/<dashboardname>

 

my local curl.

curl -ku "admin:admin123" https://localhost:8089/servicesNS/admin/search/data/ui/views/my_dashboard

 

Thanks
KV
▄︻̷̿┻̿═━一

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

0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...