diff options
author | cbay <cbay@alwaysdata.com> | 2012-11-05 18:36:21 +0400 |
---|---|---|
committer | cbay <cbay@alwaysdata.com> | 2012-11-05 18:36:21 +0400 |
commit | f36b3ad416fb06f6b9c42af92f5c46802a3c27ef (patch) | |
tree | a38ca8f935952a8d770f30fef4d13593431577fa /misc | |
parent | 4820af1aa4de1bc7ff893feb0d7ec2e49d2cb6df (diff) |
import_logs.py: lowercase the host and strip dots at both ends.
git-svn-id: http://dev.piwik.org/svn/trunk@7380 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'misc')
-rwxr-xr-x | misc/log-analytics/import_logs.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/log-analytics/import_logs.py b/misc/log-analytics/import_logs.py index 1b7f774086..b77423aa58 100755 --- a/misc/log-analytics/import_logs.py +++ b/misc/log-analytics/import_logs.py @@ -1353,7 +1353,7 @@ class Parser(object): hit.host = config.options.log_hostname else: try: - hit.host = match.group('host') + hit.host = match.group('host').lower().strip('.') except IndexError: # Some formats have no host. pass |