Splunk Search

Search without index not working

aupadhya
New Member

I installed latest Splunk and added splunkforwarder to index log data. Everything looks fine except that search doesn't return any data without specifying the index name, i.e

sourcetype="jetty"

doesn't work

but

index="app" sourcetype="jetty"

works

Any reason why search doesn't work without the index in the search query?

Tags (1)
0 Karma

rishrai
New Member

set default in access control as: index!=_*

0 Karma

the_wolverine
Champion

Assuming the data exists, this behavior is dependent on the default settings for the role. If you want the "app" index to be searchable by default, just add that index to "Indexes searched by default" for the role in question.

alt text

Ayn
Legend

By default only the main index is searched. You can change which indexes are searched by default for a user and/or role in the manager in the web interface, Manager -> Access Controls.

aupadhya
New Member

Thanks a lot

0 Karma
Get Updates on the Splunk Community!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...