ngxtop icon indicating copy to clipboard operation
ngxtop copied to clipboard

ngxtop with nginx-boilerplate logs

Open KoteKotlyarov opened this issue 8 years ago • 1 comments

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 ?

KoteKotlyarov avatar May 19 '17 15:05 KoteKotlyarov

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.

Umkus avatar Jul 28 '17 10:07 Umkus