Splunk Search

Index restriction not working with search head and search peers

takn4granted
Engager

We have 1 search head with 2 search peers. We have numerous indexes defined on the search peers, for example index A, B on the first peer and index C, D on the second peer. Using the search head we are able to search all the indexes as expected. We want to have our users perform all searches from the search head, however, when we define roles on our search head we are we are unable to see the remote indexes (index A,B,C,D) and thereby unable to restrict those indexes from any roles. Only the local indexes are showing within the Roles configuration screen.

what is the proper way to restrict users from searching those remote indexes?

Tags (2)
1 Solution

dwaddle
SplunkTrust
SplunkTrust

Define the indexes on the search head - even if they are entirely empty, this is okay. That will make them appear in the manager UI on the search head so you can establish roles as needed.

View solution in original post

chimbudp
Contributor

Hi bro,

While creating new roles , please carefully add indexes to be searched/restricted for that particular role,
Later assign that role to any user and you test.

Goto ,

Manager » Access controls » Roles »

Indexes searched by default:(Set the index(es) that searches default to when no index is specified. User with this role can search other indexes using index= (e.g., "index=special_index").)

Indexes :(Restrict this role's searches to the specified index(es). Search results for this role will only show events from these indexes.)

0 Karma

dwaddle
SplunkTrust
SplunkTrust

Define the indexes on the search head - even if they are entirely empty, this is okay. That will make them appear in the manager UI on the search head so you can establish roles as needed.

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 ...