Splunk Search

Average of multiple fields

msarro
Builder

I have three columns each containing a number. I want to have the average for each rows set of numbers. Is there a way to do this with the avg command?

i would like to be able to do something like the following

avg(AS_KPI_SCORE_AVG, PSBC_KPI_SCORE_AVG, PCSCF_KPI_SCORE_AVG)

Tags (2)

David
Splunk Employee
Splunk Employee

I know stats is usually used vertically (one field, summing that way). There may be another method that would work, but you can certainly do it with eval:

YourSearch | eval Average = (AS_KPI_SCORE_AVG + PSBC_KPI_SCORE_AVG + PCSCF_KPI_SCORE_AVG) / 3
Get Updates on the Splunk Community!

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...

New! Splunk Observability Search Enhancements for Splunk APM Services/Traces and ...

Regardless of where you are in Splunk Observability, you can search for relevant APM targets including service ...

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...