diff options
author | Adrian Muraru <adi.muraru@gmail.com> | 2014-09-27 18:27:35 +0300 |
---|---|---|
committer | Adrian Muraru <adi.muraru@gmail.com> | 2014-09-27 18:27:35 +0300 |
commit | 83bf921e61862fe906247f82c0d07a66fdde7e9e (patch) | |
tree | 6f3146ccc35a9f7f14de47e24db6162f7f059830 | |
parent | ffce3c36b9e9358e4f3b504ce1036ddc4b37a6a8 (diff) |
Nginx variables can contain uppercase letters
e.g. jssessionid=$cookie_JSESSIONID
-rw-r--r-- | ngxtop/config_parser.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ngxtop/config_parser.py b/ngxtop/config_parser.py index f6999cf..430ac23 100644 --- a/ngxtop/config_parser.py +++ b/ngxtop/config_parser.py @@ -12,7 +12,7 @@ from .utils import choose_one, error_exit REGEX_SPECIAL_CHARS = r'([\.\*\+\?\|\(\)\{\}\[\]])' -REGEX_LOG_FORMAT_VARIABLE = r'\$([a-z0-9\_]+)' +REGEX_LOG_FORMAT_VARIABLE = r'\$([a-zA-Z0-9\_]+)' LOG_FORMAT_COMBINED = '$remote_addr - $remote_user [$time_local] ' \ '"$request" $status $body_bytes_sent ' \ '"$http_referer" "$http_user_agent"' |