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!

Observe and Secure All Apps with Splunk

  Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

Splunk Decoded: Business Transactions vs Business IQ

It’s the morning of Black Friday, and your e-commerce site is handling 10x normal traffic. Orders are flowing, ...

Fastest way to demo Observability

I’ve been having a lot of fun learning about Kubernetes and Observability. I set myself an interesting ...