Forum Discussion
Sam Kim (SR PFE)
Microsoft
Jun 28, 2018Azure log with percentiles with avg
I currently am using wire data and am able to do the following
WireData
| where ProcessName contains "outlook" and ( RemoteIP matches regex "^10\\..*$") and TimeGenerated > ago(7d)
and Computer...
Meir_Mendelovich
Microsoft
Jul 04, 2018Hi,
The trick to do this is to use avgif function that allow you to include in the average calculation only values in the right range. The crux is that you have to calculate the range beforehand.
Here is an example using the Perf table:
let CounterP95=toscalar(
Perf
| where CounterName == "% Free Space"
| summarize percentile( CounterValue, 95)
);
Perf
| where CounterName == "% Free Space"
| summarize avgif(CounterValue,CounterValue<CounterP95)
Hope it helps,
Meir :->
- Sam Kim (SR PFE)Jul 06, 2018
Microsoft
thx let me try that