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 with nginx-boilerplate logs #78

Open
KoteKotlyarov opened this issue May 19, 2017 · 1 comment
Open

ngxtop with nginx-boilerplate logs #78

KoteKotlyarov opened this issue May 19, 2017 · 1 comment

Comments

@KoteKotlyarov
Copy link

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
Copy link

Umkus commented Jul 28, 2017

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.

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