diff options
author | mattab <matthieu.aubry@gmail.com> | 2014-12-01 06:35:27 +0300 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2014-12-01 06:35:27 +0300 |
commit | f3377220cfd8fb6d9549f12e72bcf15b924d06a0 (patch) | |
tree | fa8acc163fae14009367a3268b7d4e2e0075df56 /misc | |
parent | d7397b2a76e0e289f8b6de9181bb9345245e3322 (diff) |
Fixes #4936 on IIS when no query string it shows as '-' so we assume '' instead.
Diffstat (limited to 'misc')
-rwxr-xr-x | misc/log-analytics/import_logs.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/misc/log-analytics/import_logs.py b/misc/log-analytics/import_logs.py index 6674e2f2fa..b853ae1280 100755 --- a/misc/log-analytics/import_logs.py +++ b/misc/log-analytics/import_logs.py @@ -1606,6 +1606,9 @@ class Parser(object): try: hit.query_string = format.get('query_string') + # IIS detaults to - when there is no query string, but we want empty string + if hit.query_string == '-': + hit.query_string = '' hit.path = hit.full_path except BaseFormatException: hit.path, _, hit.query_string = hit.full_path.partition(config.options.query_string_delimiter) |