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

no data #83

Open
simaguo opened this issue Jan 5, 2018 · 5 comments
Open

no data #83

simaguo opened this issue Jan 5, 2018 · 5 comments

Comments

@simaguo
Copy link

simaguo commented Jan 5, 2018

ngxtop -l /path/to/access.log

@shaun-ba
Copy link

shaun-ba commented Feb 5, 2018

same, getting no requests coming in, thought it may be log format but docs don't even explain how to correctly structure this parameter.

@joshnabbott
Copy link

@shaun-ba This was happening to me too and my nginx config is using a custom log format, which turned out to be the issue. Check your nginx.conf file to see if you're doing the same (grep for log_format in the config directory) and if so, just pass ngxtop the config format and it works:

ngxtop -f '$remote_addr - $remote_user [$time_iso8601] "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent" "$http_x_forwarded_for" "$host"' -l /path/to/access.log

@joshnabbott
Copy link

Also, I think this issue wants the same thing as this one

@zjd921692097
Copy link

how to solve this problem?

@chusiang
Copy link

chusiang commented Jul 5, 2023

I have same problem on Nginx v1.18.0 x Ubuntu 20.04 .

user@ubuntu2004:~$ nginx -v
nginx version: nginx/1.18.0 (Ubuntu)

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

5 participants