I am seeing an error when attempting to use the REST API.
curl -X POST https://localhost:8089/servicesNS/admin/search/data/indexes -u splunkadmin:splunkadmin -d name=myindexname -k
The given request gives me an error about a completely different user.
<?xml version="1.0" encoding="UTF-8"?>
<msg type="ERROR">User does not exist: admin</msg>
Looking at the configuration in Splunk Web, I don't even see such a user configured.
The version is as follows.
Any idea what's going on?
curl -X POST https://localhost:8089/servicesNS/splunkadmin/search/data/indexes -u splunkadmin:splunkadmin -d name=myindexname -k
In url also you need to use splunkadmin as you do not have admin user.
View solution in original post
Thanks for the quick reply. That was the issue. The docs here were not clear on that.
@mvdobrinin - In servicesNS/admin/search/, admin is user-name and search is app-name.