index=temp_env sourcetype=access_combined earliest=-4mon latest=@m
| bucket _time span=1mon
| stats count by _time
| eval date_month=strftime(_time, "%b")
| eval date_day=strftime(_time, "%a")
| stats avg(count) as AverageCountPerDay max(count) AS Peak_Per_Month by date_month, date_day
Try this, it will give you the max peak per month and day along with the average count per day and month. It's got a 4 month look back so it may get expensive to run. You may want to consider using metasearch or tstats for faster search speeds
... View more