I am having trouble creating with the below query.
I am trying to get the average number of sessions from four computers over a time interval of one hour. I then want to chart the sum of the four averages over a time period of 24 hours.
So far I have the query below, using a join, but I can't get the right results.
// Total Sessions for all four computers
Perf
| project Computer, bin(TimeGenerated,1h)
| where Computer == "s-az-vdigpu2.company.local" or Computer == "s-az-vdigpu4.company.local" or Computer == "s-az-vdigpu5.company.local" or Computer == "s-az-vdigpu6.company.local"
| join kind= inner (
Perf
| where Computer == "s-az-vdigpu2.company.local" or Computer == "s-az-vdigpu4.company.local" or Computer == "s-az-vdigpu5.company.local" or Computer == "s-az-vdigpu6.company.local"
| where CounterName == "Total Sessions"
| summarize avg(CounterValue) by Computer, bin(TimeGenerated, 1h)
) on TimeGenerated
| summarize sum(avg_CounterValue) by TimeGenerated
| render timechart