Getting Data In

Why does my tstats search only show results for the main index?

packet_hunter
Contributor
|tstats values(sourcetype) by index

I have 10 indexes, but I only get "main" when I run the search above.

How can I get all my sourcetype(s) by index?

Thanks

Tags (3)
0 Karma
1 Solution

somesoni2
Revered Legend

You need to specify the indexes else, it only shows data from the index set as your "indexes searched by default" in your user/role.

|tstats values(sourcetype) WHERE index=* by index

View solution in original post

somesoni2
Revered Legend

You need to specify the indexes else, it only shows data from the index set as your "indexes searched by default" in your user/role.

|tstats values(sourcetype) WHERE index=* by index
Get Updates on the Splunk Community!

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

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...