Deployment Architecture

Search peer + limit indexes

skippylou
Communicator

Is there a way to have only certain indexes searchable when peer'ed with a particular search head?

Example:

Indexer1: Index A and Index B

Indexer2: Index C and Index D

If I have a search head that has both Indexer1 and Indexer2 as distributed search peers, can I have it so that on Indexer2 only Index C is searchable by this search head (essentially keeping this search head from searching Index D)?

Thanks,

Scott

Tags (1)
1 Solution

gkanapathy
Splunk Employee
Splunk Employee

Maybe. Basically, once an indexer allows itself to be searched by the search head, the search head can query any data it wants without restriction. However, you can impose restrictions on what data can be searched by the users of the search head, but you must do so using security and roles settings on the search head itself.

So if you goal is to prevent admins of a search head from querying some of your indexer data, you can't do it. If you goal is to control what users of the search head can see, you can as long as you can set up the right filters and security on the search head itself.

View solution in original post

sbochniewicz
Path Finder

If you know which indexers have the data you want to search

(splunk_server=IndexerA AND index=indexA) OR (splunk_server=indexerB AND index=B)

0 Karma

gkanapathy
Splunk Employee
Splunk Employee

Maybe. Basically, once an indexer allows itself to be searched by the search head, the search head can query any data it wants without restriction. However, you can impose restrictions on what data can be searched by the users of the search head, but you must do so using security and roles settings on the search head itself.

So if you goal is to prevent admins of a search head from querying some of your indexer data, you can't do it. If you goal is to control what users of the search head can see, you can as long as you can set up the right filters and security on the search head itself.

skippylou
Communicator

Gotcha, thanks. Yes, my goal was to limit even administrator users on the search head from querying it. This was a situation where the peers are "owned" by different groups, but that one index on one of the peers both groups would need access to.

0 Karma
Get Updates on the Splunk Community!

Celebrating Fast Lane: 2025 Authorized Learning Partner of the Year

At .conf25, Splunk proudly recognized Fast Lane as the 2025 Authorized Learning Partner of the Year. This ...

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...