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!

Developer Spotlight with Paul Stout

Welcome to our very first developer spotlight release series where we'll feature some awesome Splunk ...

State of Splunk Careers 2024: Maximizing Career Outcomes and the Continued Value of ...

For the past four years, Splunk has partnered with Enterprise Strategy Group to conduct a survey that gauges ...

Data-Driven Success: Splunk & Financial Services

Splunk streamlines the process of extracting insights from large volumes of data. In this fast-paced world, ...