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

nginx combined format needs tweaking #1864

Closed
udf2457 opened this issue Aug 2, 2020 · 2 comments
Closed

nginx combined format needs tweaking #1864

udf2457 opened this issue Aug 2, 2020 · 2 comments

Comments

@udf2457
Copy link

udf2457 commented Aug 2, 2020

Hi,

I'm not sure when it changed in the NGINX codebase, but the default install of NGINX from the NGINX repo now has the following defintion for log_format:

log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
                      '$status $body_bytes_sent "$http_referer" '
                      '"$http_user_agent" "$http_x_forwarded_for"';
access_log  /var/log/nginx/access.log  main;

I'm no expert, but this appears to be 99.9% similar to the "old" combined format, except for http_x_forwarded_for tagged on the end.

You might want to tweak your code accordingly ?

@FranklinYu
Copy link

Setting LANG=en_US.UTF-8 helped:

LANG=en_US.UTF-8 goaccess access.log --log-format=COMBINED

It has been repeatedly reported by many users: #121, #1475, #1571, #1651. I think it may help to note this in FAQ#Configuration. Would like the opinion from maintainer.

@allinurl
Copy link
Owner

allinurl commented Feb 9, 2021

Thanks @FranklinYu - This has been added to the FAQ and man page.

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

3 participants