Splunk Search

How to generate chart with 'streamstats' and consecutive 'stats' statements

kiru2992
Path Finder

Hello Everyone!

I have to generate a time chart for a calculated average with below sample query. 

 

Sample Query: 

|streamstats ..... by id

|where....

|eval ...

|eval....

|stats  min(diff) as value1 by id

|stats  avg(value1 ) as valueA  count  as Total

 

I would like to have a time chart for the  'valueA'  with time. I tried various ways to infuse a chart but was not able. Please let me know how to create a chart for the average over time.

 

Labels (2)
Tags (1)
0 Karma
Get Updates on the Splunk Community!

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

April 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...