ngxtop icon indicating copy to clipboard operation
ngxtop copied to clipboard

Support for many log files

Open WMP opened this issue 11 years ago • 3 comments

Hello, i have separated log file to any vhost, could you make support for this?

WMP avatar Mar 23 '14 00:03 WMP

+1 Something like:

ngxtop -l /var/log/*_nginx_access_log 

would be nice.

sschueller avatar Nov 05 '14 09:11 sschueller

You can try this:

tail -f /var/log/*_nginx_access_log | ngxtop

mcortizo avatar Nov 07 '14 23:11 mcortizo

Tried the above suggested tail -f

ended up in following error message

Traceback (most recent call last): File "/usr/local/bin/ngxtop", line 9, in load_entry_point('ngxtop==0.0.2', 'console_scripts', 'ngxtop')() File "/usr/local/lib/python2.7/dist-packages/ngxtop/ngxtop.py", line 385, in main process(args) File "/usr/local/lib/python2.7/dist-packages/ngxtop/ngxtop.py", line 370, in process process_log(source, pattern, processor, arguments) File "/usr/local/lib/python2.7/dist-packages/ngxtop/ngxtop.py", line 267, in process_log processor.process(records) File "/usr/local/lib/python2.7/dist-packages/ngxtop/ngxtop.py", line 215, in process for r in records: File "/usr/local/lib/python2.7/dist-packages/ngxtop/ngxtop.py", line 148, in add_field for item in dict_sequence: File "/usr/local/lib/python2.7/dist-packages/ngxtop/ngxtop.py", line 135, in map_field for item in dict_sequence: File "/usr/local/lib/python2.7/dist-packages/ngxtop/ngxtop.py", line 135, in map_field for item in dict_sequence: File "/usr/local/lib/python2.7/dist-packages/ngxtop/ngxtop.py", line 148, in add_field for item in dict_sequence: File "/usr/local/lib/python2.7/dist-packages/ngxtop/ngxtop.py", line 148, in add_field for item in dict_sequence: File "/usr/local/lib/python2.7/dist-packages/ngxtop/ngxtop.py", line 135, in map_field for item in dict_sequence: File "/usr/local/lib/python2.7/dist-packages/ngxtop/ngxtop.py", line 187, in records = (m.groupdict() for m in matches if m is not None) File "/usr/local/lib/python2.7/dist-packages/ngxtop/ngxtop.py", line 186, in matches = (pattern.match(l) for l in lines) IOError: [Errno 4] Interrupted system call

anantshri avatar Dec 21 '14 12:12 anantshri