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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

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

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...