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!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...