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

Log Records #74

Closed
luvpreetsingh opened this issue Feb 22, 2017 · 6 comments
Closed

Log Records #74

luvpreetsingh opened this issue Feb 22, 2017 · 6 comments

Comments

@luvpreetsingh
Copy link

Does ngxtop save records for its own use , somewhere?

I mean how can it take out the top 20 requests ?
by
ngxtop -n 20

@lebinh
Copy link
Owner

lebinh commented Feb 23, 2017

Hi, ngxtop parse the logs and keep the records in a in-memory sqlite database while it is running but not saving that anywhere else

@luvpreetsingh
Copy link
Author

luvpreetsingh commented Feb 23, 2017 via email

@lebinh
Copy link
Owner

lebinh commented Feb 23, 2017

Unfortunately no, and we don't provide any option to save that db. Although I am not sure why you would need to access that db? Also there is an option for you to run your own query on that db instead of the default reporting query with ngxtop [options] query <query>

@luvpreetsingh
Copy link
Author

luvpreetsingh commented Feb 23, 2017 via email

@lebinh
Copy link
Owner

lebinh commented Feb 23, 2017

@sLuvpreet33 you can do smth like this tail -fq access1.log access2.log | ngxtop

@luvpreetsingh
Copy link
Author

luvpreetsingh commented Mar 2, 2017 via email

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