Knowledge Management

Summary index timechart no values

natvaldev
Observer

I'm trying to set up a summary index using the sitimechart command.

I read a lot about it, in the docs and in this forum, but couldn't find the solution yet.

 

My search is as follow:

index=_internal service=A level=30
| timechart span=1m avg(durationMS) count

Now, this search return a timechart with the duratoin and count in every minute.

When running it with a summary index, I get different result

index=_internal service=A level=30
| sitimechart span=1m avg(durationMS) count

I get all the psrsvd fields, without the actual count and durationMS.

It seems I need to calculate it again from psrsvd_ct_durationMS and psrsvd_sm_durationMS, which is not what I want.

 

The docs says that I should be able to run the same search on the summary index and get the same results.

What am I missing?

Labels (1)
0 Karma

richgalloway
SplunkTrust
SplunkTrust

Summary statistics need to be written to a summary index.  Later, use the timechart command to read those summary stats from the summary index.

index=_internal cpu_seconds=*
| sitimechart span=1m avg(cpu_seconds) count
| collect sistats

index=sistats
| timechart span=1m avg(cpu_seconds) count
---
If this reply helps you, Karma would be appreciated.
0 Karma

to4kawa
Ultra Champion

sample:

index=_internal sourcetype=splunkd
| sitimechart span=1m avg(largest_size) count
| timechart span=1m avg(largest_size) count

reference:

https://docs.splunk.com/Documentation/Splunk/latest/Knowledge/Usesummaryindexing

It seems to be fine to continue with timechart.

recommend:

index=_internal service=A level=30
| sitimechart span=1m avg(durationMS) count
| timechart span=1m avg(durationMS) count

 

 

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Guided Onboarding with Auto-schema Is Now Generally Available

  We are excited to announce the General Availability of Guided Onboarding with Auto-Schematization ...

ATTENTION: We’re Moving! (AGAIN!)

The Splunk Community Slack is undergoing a system migration to keep our workspace secure and ...

Deep Dive: Optimizing Telemetry Pipelines in Splunk Observability Cloud

In this session, we will peel back the layers of Splunk Observability Cloud’s cost-optimization features. ...