Splunk Search

Is it better to only make searchable indexes available via the Selected search indexes option rather than using Restrict search terms?

jaho_splunk
Engager

If I leave the Restrict search terms option empty and only make searchable indexes available via the Selected search indexes option, is this more efficient than using the Restrict search terms option to name the indexes they may search? If the client is allowed to search the entire index, leaving Restrict search terms empty does not negatively affect their search / search time does it?

0 Karma

martin_mueller
SplunkTrust
SplunkTrust

If you want to restrict a user to a set of indexes, use srchIndexesAllowed.
If you have to restrict a user based on other criteria, use srchFilter.
http://docs.splunk.com/Documentation/Splunk/6.4.0/Admin/authorizeconf#.5Brole_.3CroleName.3E.5D

The performance of srchFilter = index=foo will be fine, but it's really ugly and pointless.

0 Karma
Get Updates on the Splunk Community!

Splunk Observability as Code: From Zero to Dashboard

For the details on what Self-Service Observability and Observability as Code is, we have some awesome content ...

[Puzzles] Solve, Learn, Repeat: Character substitutions with Regular Expressions

This challenge was first posted on Slack #puzzles channelFor BORE at .conf23, we had a puzzle question which ...

Shape the Future of Splunk: Join the Product Research Lab!

Join the Splunk Product Research Lab and connect with us in the Slack channel #product-research-lab to get ...