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

log format can't change #14

Open
zw231212 opened this issue Oct 11, 2019 · 0 comments
Open

log format can't change #14

zw231212 opened this issue Oct 11, 2019 · 0 comments

Comments

@zw231212
Copy link

Change the log_format in nginx.tmpl did not work.

log_format vhost '$remote_addr - $remote_user [$time_local] "$request" '
                      '$status $body_bytes_sent "$http_referer" '
                      '"$http_user_agent" "$http_x_forwarded_for" '
                      '$request_time $upstream_response_time';

the access_log is still the old format

XXXX - - [11/Oct/2019:06:24:56 +0000] "GET /static/js/amazeui.min.js HTTP/1.1" 304 0 "XXXXX" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36" "XXXXX"
XXXX - - [11/Oct/2019:06:24:56 +0000] "GET /static/fonts/fontawesome-webfont.woff2?v=4.5.0 HTTP/1.1" 304 0 "XXXX" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36" "XXXX"
@zw231212 zw231212 changed the title access log log format can't change Oct 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant