Splunk Search

How to force my user to specify an index

llacoste
Path Finder

Hi,

So I've been facing some challenges with some of my users and I don't really know exactly how to tackle this.

Despite common sense and explaining them on a "welcoming page" on their app how to search with index="theirIndex" sourcetype="blabla" ...

 

They keep on not using index="", because you know, it works... they are searching all the indexes they've got access to with their roles and it's quite annoying when they should really specify an index there.

Do you have any advice on how to introduce that? I read about some filter that could be applied in the past with srchFilter or even thought of removing the Default indexes from their roles but not really sure which work best.

 

Thank you all, sorry if it's an easy question.

 

Ps: yes, my users are quite stubborn sometimes, I already won the "all time" challenge  😉 

0 Karma

richgalloway
SplunkTrust
SplunkTrust

I recommend removing the default indexes from their roles.  Once searches stop working they'll learn to use index=.

---
If this reply helps you, Karma would be appreciated.

llacoste
Path Finder

Thought I would do that but I don't really know if that's the best "splunky" way of dealing with it as there is always 10 ways of doing things with Splunk ahah.

 

I'll try it thank you. I'm sure they'll love it 😄

0 Karma

richgalloway
SplunkTrust
SplunkTrust

That is the best way, IMO.  Search filters may be able to accomplish the goal, but they tend to be easy to work around and a challenge to manage.

Workload Management's "Admission Rules" feature has the potential for doing this very well, but lacks the ability to test for the absence of something.  You can block "index=*", for example, but can't determine if an index was not specified.

---
If this reply helps you, Karma would be appreciated.
0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...