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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...