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

ngxtop fail to work with comment out log_format directive. #32

Closed
yujinqiu opened this issue Apr 8, 2014 · 1 comment
Closed

ngxtop fail to work with comment out log_format directive. #32

yujinqiu opened this issue Apr 8, 2014 · 1 comment

Comments

@yujinqiu
Copy link

yujinqiu commented Apr 8, 2014

use ngxtop -c conf/nginx.conf -l logs/access.log to specify the log_format. When nginx.conf with commented out log_format as following, I cann't not get the expected result.
# log_format main '$remote_addr - $remote_user [$time_local] "$request" '
# '$status $body_bytes_sent "$http_referer" '
# '"$http_user_agent" "$http_x_forwarded_for"';
log_format main '$remote_addr - $remote_user [$time_local] '
'"$request" $status $request_length $request_time $body_bytes_sent '
'"$http_referer" "$http_user_agent" $server_addr $upstream_addr $host $upstream_cache_status';

After I delete the commented lines, It works as expected.

@lebinh
Copy link
Owner

lebinh commented Apr 9, 2014

This is fixed which new config parser in development branch. I'll update ngxtop on pypi with new version soon.

@lebinh lebinh closed this as completed Apr 9, 2014
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

2 participants