lebinh/ngxtop

tail log via ssh not working

gaolongquan opened this issue · 0 comments

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