Quantcast
Channel: Questions in topic: "splunk-enterprise"
Viewing all articles
Browse latest Browse all 47296

How to edit my stats search to find the percentage of a range?

$
0
0
I'm trying to build a simple SPL query to display the max, min, range (difference), and percent of the difference to the max value. index=myindex source="mysource"| stats max(count), min(count), range(count)|rename max(count) to "Max", min(count) to "Min", range(count) to "Difference" Tried using the perc(y) stats function with no luck... Also tried some basic math which blows up every time.. range(count) \ max(count)*100 Thanks for your help in advance.

Viewing all articles
Browse latest Browse all 47296

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>