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
Get Updates on the Splunk Community!

Modern way of developing distributed application using OTel

Recently, I had the opportunity to work on a complex microservice using Spring boot and Quarkus to develop a ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had 3 releases of new security content via the Enterprise Security ...

Archived Metrics Now Available for APAC and EMEA realms

We’re excited to announce the launch of Archived Metrics in Splunk Infrastructure Monitoring for our customers ...