Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorcbay <cbay@alwaysdata.com>2012-11-05 18:36:21 +0400
committercbay <cbay@alwaysdata.com>2012-11-05 18:36:21 +0400
commitf36b3ad416fb06f6b9c42af92f5c46802a3c27ef (patch)
treea38ca8f935952a8d770f30fef4d13593431577fa /misc
parent4820af1aa4de1bc7ff893feb0d7ec2e49d2cb6df (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-xmisc/log-analytics/import_logs.py2
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