lebinh / ngxtop

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

Log Records #74

Closed luvpreetsingh closed 5 years ago

luvpreetsingh commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

Hi,

Can we access that in-memory sqlite database for our convenience ?

On Thu, Feb 23, 2017 at 10:17 AM, Binh Le notifications@github.com wrote:

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

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/lebinh/ngxtop/issues/74#issuecomment-281893719, or mute the thread https://github.com/notifications/unsubscribe-auth/AWDm_DAag2f5fqo3o_87XMqou7nVPfIUks5rfQ97gaJpZM4MJIrW .

lebinh commented 7 years ago

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 commented 7 years ago

Okay. Thank you. Can we pass two log files at one time to ngxtop ?

ngxtop -l access1.log access2.log ??

I was hoping to monitor 2 logs at one moment.

On Thu, Feb 23, 2017 at 11:45 AM, Binh Le notifications@github.com wrote:

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

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/lebinh/ngxtop/issues/74#issuecomment-281904791, or mute the thread https://github.com/notifications/unsubscribe-auth/AWDm_N1LLo2K2lwVuJ82qFW7PwYAQgmNks5rfSP5gaJpZM4MJIrW .

lebinh commented 7 years ago

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

luvpreetsingh commented 7 years ago

Is there any kind of UI for using ngxtop ?

OR

it can be used only in command line?

On Thu, Feb 23, 2017 at 12:23 PM, Binh Le notifications@github.com wrote:

@sLuvpreet33 https://github.com/sLuvpreet33 you can do smth like this tail -fq access1.log access2.log | ngxtop

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/lebinh/ngxtop/issues/74#issuecomment-281910676, or mute the thread https://github.com/notifications/unsubscribe-auth/AWDm_OssKFNX_vU4clDuj4OrZTztUg_Vks5rfSz2gaJpZM4MJIrW .