Ngxtop -l file_name 

takes only 1 log file as its input, Isthere any way by which I can pass 2 log files to ngxtop for monitoring ? or combine two files into 1, so that they both can be monitored ?


If you have more than one file, one way to do it is to use cat to first concatenate the files.

Ex: cat file_new.log >> file_old.log

and then you can use ngxtop -l file_old.log

You can easily scale this method to use any number of files with ngxtop.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.