Getting Data In

How can I use REST endpoints (or gui) to upload a file to role-restricted indexes?

cfergus
Path Finder

Our Splunk environment has multiple indexes, with role restrictions on index access.

I want to allow users to upload files in a fashion similar to Manager > Data Inputs > Files & Directories > Add New using the 'upload a local file' option.

They should only be able to upload local files (no Splunk server files should be input), and only to indexes they are allowed access to.

The authorization capabilities doesn't seem to allow for only this.

I'd be happy with a REST or UI based solution to this conundrum.

Is this possible?

Tags (2)
0 Karma
1 Solution

Stephen_Sorkin
Splunk Employee
Splunk Employee

Unfortunately not. Adding inputs requires the "edit_monitor" capability, which is independent of role-restricted indexes.

View solution in original post

Stephen_Sorkin
Splunk Employee
Splunk Employee

Unfortunately not. Adding inputs requires the "edit_monitor" capability, which is independent of role-restricted indexes.

Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

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