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!

Announcing Scheduled Export GA for Dashboard Studio

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

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...