I am trying to chart the average per day of the week (mon, tue, wed, etc) but unable to do it with the days arranged in sequence i.e., Sun, Mon, Tue, etc.
I have the following search with the days of the week in order but it shows the total per day of week:
search | eval date_wday=strftime(_time,"%w-%A") | chart count by date_wday
I found this search for average per day of the week but can't make it to work with the above for the days to be in sequence:
search | bin span=1d _time | stats count dc(_time) as days by date_wday | eval average_count = count / days
Any help would be highly appreciated!
↧