--date-spec=hr changes number of unique visitors
This code gives 482 unique visitors for 13 September.
zcat -f /var/log/nginx/access.log.1 | \
grep -v -f /home/slisakov/scripts/exclude-list.txt |\
goaccess \
--http-protocol=no \
--http-method=no \
--ignore-panel=HOSTS \
--date-spec=hr \
--ignore-panel=REFERRING_SITES \
--sort-panel=REQUESTS,BY_VISITORS,DESC \
--anonymize-ip \
--exclude-ip 176.190.94.0-176.190.94.255\
--ignore-crawlers \
--log-format COMBINED \
--output /var/www/html/yesterday/index.html \
-
If the --date-spec=hr option is omitted, number of unique visitors changes to 375, leaving other fields (total requests, valid requests etc.) intact.
What can be the reason of this difference?
(My confusion in https://github.com/allinurl/goaccess/issues/2554 actually stems from this issue)
I understand. So, if you're using the --date-spec=hr option, the numbers will vary. Are you suggesting that you'd like the unique visitor count to be grouped by date instead of the current behavior?
I understand. So, if you're using the
--date-spec=hroption, the numbers will vary. Are you suggesting that you'd like the unique visitor count to be grouped by date instead of the current behavior?
Yes.