Getting Data In

Splunk 6 REST API - Delete Custom Dashboards

spiketide
Engager

Hi,

In our application, we are using the REST API to create / delete custom dashboards in splunk.

For delete, we use the following.

/servicesNS/usrname/appname/data/ui/views/customdashboardname

with HTTP DELETE. This was working smoothly with splunk 5.

We recently upgraded to splunk 6 and when we used the same command to delete a custom dashboard we get the following error

CODE=404
<?xml version="1.0" encoding="UTF-8"?>
<response>
  <messages>
    <msg type="ERROR">In handler 'views': Cannot find entity with name="d"</msg>
  </messages>
</response>

where 'd' is the name of the custom dashboard.

What has changed in splunk 6 with respect to this? I have tried and have not found any documentation regarding this.

Thanks and Regards.

0 Karma

paramagurukarth
Builder

This may happen in the cases of shared resources.
Make sure the user for your sessionKey have write access over your application
and use username for private custom dashboards and "nobody" for share deshboards
ie,
/servicesNS/usrname/appname/data/ui/views/customdashboardname - For privates Dsahboards
/servicesNS/nobody/appname/data/ui/views/customdashboardname - For shared Dashboards

Good Luck

somesoni2
Revered Legend

A good idea will be to check if the Owner of the view is showing as 'usrname' in Splunk.

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Introduction to Splunk AI

How are you using AI in Splunk? Whether you see AI as a threat or opportunity, AI is here to stay. Lucky for ...

Splunk + ThousandEyes: Correlate frontend, app, and network data to troubleshoot ...

Are you tired of troubleshooting delays caused by siloed frontend, application, and network data? We've got a ...

Maximizing the Value of Splunk ES 8.x

Splunk Enterprise Security (ES) continues to be a leader in the Gartner Magic Quadrant, reflecting its pivotal ...