This is just incredible that such a simple option can't be achieved in a simple way. I've tried so many ways to achieve this
timechart dc(Username)
Gives alternate months
bucket _time span=1mon | stats dc(Username) by _time
Gives the tick marks as full dates including time and TZ offset.
stats dc(Username) by date_month
Gives months with lower case text including first letter, sorted alphabetically.
stats dc(Username) by date_month, date_year | rename date_month as Month | eval sort_field=case(Month=="january",1, Month=="february",2, Month=="march",3, Month=="april",4, Month=="may",5, Month=="june",6, Month=="july",7, Month=="august",8, Month=="september",9, Month=="october",10, Month=="november",11, Month=="december",12) | sort date_year, sort_field | fields - sort_field, date_year
Almost gets there, but it still has months with lower case text including first letter, but at least in the right order.
So finally I add in an eval Month = upper(substr(Month,1,1)).substr(Month,2) to the end.
Does it really have to be so hard...? I'm sure I can't be the only person who's ever wanted to get a simple graph of something over 12 months...
I'm posting this as the answer as I have to use it, but I don't see this really is the right way to do it.
... View more