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!

Stay Connected: Your Guide to July and August Tech Talks, Office Hours, and Webinars!

Dive into our sizzling summer lineup for July and August Community Office Hours and Tech Talks. Scroll down to ...

Edge Processor Scaling, Energy & Manufacturing Use Cases, and More New Articles on ...

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

Get More Out of Your Security Practice With a SIEM

Get More Out of Your Security Practice With a SIEMWednesday, July 31, 2024  |  11AM PT / 2PM ETREGISTER ...