That worked great for the total pageviews! Thanks! Here is the search:
host=* [ stats count | addinfo | eval range=info_max_time - info_min_time | eval search=if(range<=(86400+3600),"index=wi_summary_hourly","index=wi_summary_daily") ] source="User session visitor source*" | chart eval(sum(myeventcount)) AS pageviews over date_hour
However, I was looking for the average and when I replace sum(myeventcount) with avg(myeventcount), it doesn't give a correct average. Any thoughts?
... View more