Getting Data In

Having trouble deleting identities.conf file using API (Error: authentication failed/ method not allowed).

test_splunk15
Explorer

Hi Team,

I am trying to use below command to delete the identities.conf file /opt/splunk/etc/apps/splunk_app_db_connect/local, however I am getting authentication failed/method not allowed.

What is the exact syntax to delete this .conf file using API?

curl -k -u  admin:password --request DELETE https://localhost:8089/servicesNS/nobody/splunk_app_db_connect/db_connect/dbxproxy/identities -d \"{\"name\":\"user\",\"username\":\"appusername\",\"password\":\"apppassword\"}\"

also tried without passing -d parameters.

{"code":405,"message":"HTTP 405 Method Not Allowed"}
Labels (1)
0 Karma

test_splunk15
Explorer

or is there a way we can delete any conf file using api call which Splunk recognizes? as I am creting it using API call and during deletion, we can manually delete the file and do a splunk restart as a work around, but would be helpful to understand if there is any better way?

Thanks.

0 Karma
Get Updates on the Splunk Community!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...