Monitoring Splunk

How can a non admin user have REST API Access

Mounika
Loves-to-Learn

1. How can a non admin user access Splunk REST APIs?
2. After getting session key, search id and search status we are trying to get search results. But it is showing null.  
curl -u $user:$password -k https://localhost:8089/servicesNS/admin/search/search/jobs/sid/results/ --get 

 Any comments are much appreciated. 

Thank you

Labels (1)
0 Karma

VatsalJagani
SplunkTrust
SplunkTrust

You are trying to access the search result that has is generated by Admin.

 https://localhost:8089/servicesNS/admin/search/search/jobs/sid/results/

Here - admin is the user who owns the search job

          - The first "search" is the App name which has access (can be accessible if the job is global or reside within search app)

 

So if the search job is owned by an admin user you cannot access it with other users.

If the job is accessible by other users then change the username in the URL with a hyphen(-) and give it a try.

 

In general REST API is accessible to all users, it all comes to down to what objects that user has permission to.

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...