goaccess icon indicating copy to clipboard operation
goaccess copied to clipboard

--date-spec=hr changes number of unique visitors

Open pozitron57 opened this issue 2 years ago • 9 comments

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)

pozitron57 avatar Sep 14 '23 11:09 pozitron57

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?

allinurl avatar Sep 21 '23 01:09 allinurl

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?

Yes.

pozitron57 avatar Sep 24 '23 21:09 pozitron57