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!

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...