Splunk Search

Will the search "host=XX*" search all hosts in all indexes, or will it only search hosts in the default index?

ayushchoudhary
Path Finder

When I run the search as:
host=XX*
will this search all the hosts in all the indexes, or will it only search hosts in the default index?
When I was trying it, it searches all hosts of all indexes, but my app team has doubts. Please help.

Tags (3)
0 Karma

rphillips_splk
Splunk Employee
Splunk Employee

If you don't specify an index to search against it will search the default indexes listed in your user's role's "Indexes searched by default". You can view that via the web interface by navigating to Settings>Access controls> Roles>Role name. If your user's role is restricted to only certain indexes under the "Indexes" section of the same page they will only see events from those indexes which they are permitted to. If they are permitted to the indexes you want them to search you can add index=* host=XX* to your search or add the indexes to the "Indexes searched by default" list. (This will not search the internal indexes, for that you would need to use index=_*

Get Updates on the Splunk Community!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...