Splunk Search

tstats returning zero results for a simple count query

imrago
Contributor

We are ingesting large volume of network data and would like to use tstats to make the searches faster. 

The query 

index=myindex

is returning results as expected, but when I run a basic tstats like

| tstats count where index=myindex

returns zero results. What could be the cause?

 

Attempted also to use :

| tstats count where index=federated:myindex

but it did not help.

 

Labels (2)
0 Karma
1 Solution

yuanliu
SplunkTrust
SplunkTrust

Start diagnosis with this:

| tstats count where index=* by index

Is "myindex" in the list?

View solution in original post

0 Karma

yuanliu
SplunkTrust
SplunkTrust

Start diagnosis with this:

| tstats count where index=* by index

Is "myindex" in the list?

0 Karma

imrago
Contributor

thank you, that is a useful query

0 Karma
Get Updates on the Splunk Community!

Fueling your curiosity with new Splunk ILT and eLearning courses

At Splunk Education, we’re driven by curiosity—both ours and yours! That’s why we’re committed to delivering ...

Splunk AI Assistant for SPL 1.1.0 | Now Personalized to Your Environment for Greater ...

Splunk AI Assistant for SPL has transformed how users interact with Splunk, making it easier than ever to ...

Unleash Unified Security and Observability with Splunk Cloud Platform

     Now Available on Microsoft AzureOn Demand Now Step boldly into the AI revolution with enhanced security ...