Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
pozitron57 opened this issue Sep 14, 2023 · 2 comments
Open

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

pozitron57 opened this issue Sep 14, 2023 · 2 comments

Comments

@pozitron57
Copy link

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 #2554 actually stems from this issue)

@allinurl
Copy link
Owner

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?

@pozitron57
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants