Getting Data In

Chart indexed events per second over time

dslevy
Explorer

How can I use this to make a chart and graph over a 7 day period (for example) without running it in realtime? I want to be able to see the eps for a sourcetype so I can make an alert when a threshold is reached. I tried using:

index="_internal" (source=*metrics.log) group="per_sourcetype_thruput" series="cisco_asa" | timechart span=30m max(eps)

But this doesn't match up with another system I am using especially when a spike occurs.

Tags (2)

hexx
Splunk Employee
Splunk Employee

You cannot use metrics.log's "per_sourcetype_thruput" for this because it only samples the top 10 busiest source types for every capture period of 30s.

To accurately measure the rate of indexing of a given source type over time, you'd have to go to the events themselves and cursor your search using _indextime instead of _time, like so:

index=cisco sourcetype="cisco_asa"
| eval _time = _indextime
| bin _time span=30m
| stats count by _time
| timechart span=30m per_second(count) AS EPS
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, and empower your SOC to reach new heights! Duration: 1 hour  Prepare to ...

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 ...