lebinh / ngxtop

Real-time metrics for nginx server
MIT License
6.49k stars 473 forks source link

ngxtop with nginx-boilerplate logs #78

Open KoteKotlyarov opened 7 years ago

KoteKotlyarov commented 7 years ago

I'm trying to use ngxtop on logs from https://github.com/nginx-boilerplate/nginx-boilerplate

But with no luck. No errors. Just 0 records processed: 0.00 req/sec

I used default boilerplate configs, tried to move log format into my sites config file, used every option from ngxtop...

Tried several times, on site access logs, on default access logs... Nothing.

Looks like something wrong with me... Or ngxtop doesnt work with that nginx boilerplate...

Can someone test it ?

Umkus commented 7 years ago

Nginx boilerplate uses an extended custom logging format. So you need to account for that. This worked for me: ngxtop -l logs/access.log -c nginx-boilerplate/nginx.conf

Also, if you are testing on a static (non-updating) log file you you need to pass --no-follow additionally.