I have a report that reports the count of events per another field. I can get a total of all of these events but it shows up at the bottom.
Can I get that total from "addcoltotals" to show up at the very top instead?
Add the |sort - count after the |addcoltotals. It will sort your count by greatest to least.
{your search}
| addcoltotals
| sort - count
@jbezanson...If addcoltotals is showing results in the end just add the following in the end | reverse
. PS: If you are not sowing more than 10000 results then you can use sort as well. However, I would expect reverse to perform better.
use sort option
You could put a | sort fieldA fieldB
etc at the end of your SPL. You will just need to figure out which fields to use for the sort to make the order come out the way you want...