no data
simaguo opened this issue · 5 comments
simaguo commented
ngxtop -l /path/to/access.log
shaun-ba commented
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 commented
@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 commented
Also, I think this issue wants the same thing as this one
zjd921692097 commented
how to solve this problem?
chusiang commented
I have same problem on Nginx v1.18.0 x Ubuntu 20.04 .
user@ubuntu2004:~$ nginx -v
nginx version: nginx/1.18.0 (Ubuntu)