Splunk Search

Schedule search includes result from non-default index

daniel_splunk
Splunk Employee
Splunk Employee

From the document, if index=myindex was not mentioned, Splunk search will only use default indexes. However, I found that the behaviour is not true anymore. When I run a search, result return from non default index as well.

What is the possible cause?

Tags (1)
0 Karma

daniel_splunk
Splunk Employee
Splunk Employee

You can check whether srchFilter is set in your role.

For example,

authorize.conf 
[default] 
srchFilter = NOT index=*_archive 

If you have set srchFilter to some value, it will get added to every search for this role.

As your srchFilter exist, it includes an “index=“ line and Splunk is not going to look at the srchIndexesDefault parameter.

Get Updates on the Splunk Community!

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

April 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...