Splunk Enterprise

How to find single value based on result in a table?

Julia1231
Communicator

Hi everyone,

Please help me with this problem.

After doing some search by Splunk, I have results in a table below:

Id Average
1231 130
1234 540
1568 220
7564 116
7894 273

 

No I need to calculate some values that based on the average in the table.

For ex: result1= average of id 1231 / average of id 7894

result 2 = average of 1568 / average of 1234

How can I do it please?

Thanks in advanced!

Labels (1)
Tags (2)
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Try using chart instead of stats

| eval row=1
| chart avg(Average) as Average by row Id

Depending on the search you used to create your table, you may be able to do this a different way

0 Karma
Get Updates on the Splunk Community!

Splunk Observability Cloud’s AI Assistant in Action Series: Analyzing and ...

This is the second post in our Splunk Observability Cloud’s AI Assistant in Action series, in which we look at ...

Elevate Your Organization with Splunk’s Next Platform Evolution

 Thursday, July 10, 2025  |  11AM PDT / 2PM EDT Whether you're managing complex deployments or looking to ...

Splunk Answers Content Calendar, June Edition

Get ready for this week’s post dedicated to Splunk Dashboards! We're celebrating the power of community by ...