Splunk Search

How to divide a sum based values/count ?

aryamehr360
New Member
| stats sum("Sum of consumption") as Total_Consumption count as Session

I got as a result in splunk / statistics chart:

  • Total_Consumption 750.580
  • Session 25

Now I want to divide them to get the average of consumption per session,
to show it on my dashboard.

Labels (1)
0 Karma
1 Solution

to4kawa
Ultra Champion
....
|eval divide=Total_Consumption / Session

Now I want to divide them to get the avrage of consumption per session,

Sorry, I don't understand that divide them = get the avrage of consumption per session,
Only divide, this query is. but I think per session is another way.

View solution in original post

0 Karma

to4kawa
Ultra Champion
....
|eval divide=Total_Consumption / Session

Now I want to divide them to get the avrage of consumption per session,

Sorry, I don't understand that divide them = get the avrage of consumption per session,
Only divide, this query is. but I think per session is another way.

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...