Getting Data In

Problem with REST API

rmorlen
Splunk Employee
Splunk Employee

We have restricted access to Splunk via the REST API. We have created a user where we think we have allowed this capability. Trying the command:

curl -k https://splunkserver:8089/services/auth/login -d username=restuser -d password=password

Get a message that login fails.

The user restuser inherits from the user role and restaccess role.

authorize.conf contains:

[role_restaccess]

importRoles = user

rtSrchJobsQuota = 0

srchIndexesAllowed = *;_*

srchIndexesDefault = *;main

srchJobsQuota = 4

srchMaxTime = 0

rest\_properties\_get = enabled

rest\_apps\_view = enabled

~~~~~~

Any suggestions?

Tags (2)
0 Karma

rmorlen
Splunk Employee
Splunk Employee

Yes. The configuration of our environment runs pretty much using Apps. Security is also controlled through an app (including LDAP configuration) with only server specific settings configured locally. We had to coordinate the local settings with the app controlled settings.

0 Karma

ineeman
Splunk Employee
Splunk Employee

rmorlen, were you able to resolve this?

0 Karma

fk319
Builder

I used a different endpoint, this may be of some help:

servicesNS/admin/$app/auth/login

0 Karma

araitz
Splunk Employee
Splunk Employee

Sorry, I can't reproduce locally or remotely. Are you sure this isn't an issue where you need to quote or escape characters in the password?

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Mile High Learning with Splunk University, Denver, Colorado

If Denver is known for its mile-high elevation, Splunk University is about to raise the bar on technical ...

IT Service Intelligence 5.0 Series: Your Guide to the June Launch

We are excited to announce the June release of Splunk IT Service Intelligence (ITSI) 5.0. This update ...

Agent Mode Engaged! Enchaining Agentic Operations with Splunk AI Assistant 2.0

    Are you ready to transform how your team handles complex data requests? We invite you to our upcoming ...