oh~~~ this is cool! Thank you!
I see what you're doing here, and the sorting is really cool.
However, I can't seem to pass the result of stats into timechart (when I do, it returns no result). I had to use eventstats instead, but that nullify the sorting. 😞
And for the eventstats, I actually have to also split by date for the average to calculate properly.
... | bin time span=1d
| eval sorttype=0
| appendpipe [| eval project="Total", sorttype=1]
| eventstats avg(eventDuration) as avgDuration by date sorttype project
| timechart span=1d avg(avgDuration) by project
Do you know how I might get stats working with timechart? I'd really prefer the "Total" to be the last column, without having to come up with weird names just to satisfy the automatic alphabetical sorting.
... View more