Splunk Search

Graph total events over time

chrisdev
Explorer

Hi all,

Im attempting to create a graph that plots total number of events over time. I have tried various usages of timechart, which does not have the desired effect. 

 

sourcetype=* index=* | timechart span=1h count

 

 

This yields the following result:

splunk.png

 

The total number of events in this example is 16, however the data points on the graph correspond to imports and go from 0 -> 13 -> 3. Is there any way I can plot the total number of events over time (so the 3 data point actually becomes 16)?

 

Thanks in advance for any assistance.

Labels (3)
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust
| streamstats sum(count) as total

View solution in original post

ITWhisperer
SplunkTrust
SplunkTrust
| streamstats sum(count) as total
Get Updates on the Splunk Community!

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI!Discover how Splunk’s agentic AI ...

Splunk Enterprise Security 8.x: The Essential Upgrade for Threat Detection, ...

Watch On Demand the Tech Talk on November 6 at 11AM PT, and empower your SOC to reach new heights! Duration: ...

Splunk Observability as Code: From Zero to Dashboard

For the details on what Self-Service Observability and Observability as Code is, we have some awesome content ...