lebinh/ngxtop

Log Records

luvpreetsingh opened this issue · 6 comments

Does ngxtop save records for its own use , somewhere?

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

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

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>

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