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!

Splunk Observability Synthetic Monitoring - Resolved Incident on Detector Alerts

We’ve discovered a bug that affected the auto-clear of Synthetic Detectors in the Splunk Synthetic Monitoring ...

Video | Tom’s Smartness Journey Continues

Remember Splunk Community member Tom Kopchak? If you caught the first episode of our Smartness interview ...

3-2-1 Go! How Fast Can You Debug Microservices with Observability Cloud?

3-2-1 Go! How Fast Can You Debug Microservices with Observability Cloud? Learn how unique features like ...