Hi,
I'm encountering below error. Please have a look.
Traceback (most recent call last):
File "/bin/ngxtop", line 11, in
sys.exit(main())
File "/usr/lib/python2.7/site-packages/ngxtop/ngxtop.py", line 385, in main
process(args)
File "/usr/lib/python2.7/site-packages/ngxtop/ngxtop.py", line 367, in process
pattern = build_pattern(log_format)
File "/usr/lib/python2.7/site-packages/ngxtop/config_parser.py", line 137, in build_pattern
return re.compile(pattern)
File "/usr/lib64/python2.7/re.py", line 190, in compile
return _compile(pattern, flags)
File "/usr/lib64/python2.7/re.py", line 242, in _compile
raise error, v # invalid expression
sre_constants.error: redefinition of group name 'request_time' as group 11; was group 7
From my understanding, this error is caused by my nginx.conf file since i've added an extra parameter in my access.log. Is there anyway that i can work with it my server. Please have my server's log format.
Hi, I'm encountering below error. Please have a look.
Traceback (most recent call last): File "/bin/ngxtop", line 11, in
sys.exit(main())
File "/usr/lib/python2.7/site-packages/ngxtop/ngxtop.py", line 385, in main
process(args)
File "/usr/lib/python2.7/site-packages/ngxtop/ngxtop.py", line 367, in process
pattern = build_pattern(log_format)
File "/usr/lib/python2.7/site-packages/ngxtop/config_parser.py", line 137, in build_pattern
return re.compile(pattern)
File "/usr/lib64/python2.7/re.py", line 190, in compile
return _compile(pattern, flags)
File "/usr/lib64/python2.7/re.py", line 242, in _compile
raise error, v # invalid expression
sre_constants.error: redefinition of group name 'request_time' as group 11; was group 7
From my understanding, this error is caused by my nginx.conf file since i've added an extra parameter in my access.log. Is there anyway that i can work with it my server. Please have my server's log format.
log_format main '$remote_addr - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent $request_time - "$http_referer" ' '"$http_user_agent" "$http_x_forwarded_for" "RT: $request_time"';