diff --git a/misc/log-analytics/import_logs.py b/misc/log-analytics/import_logs.py
index <HASH>..<HASH> 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
import_logs.py: lowercase the host and strip dots at both ends.

git-svn-id: <URL>