fix missing space in systemd logs

The regex ended up removing a space between date and host in systemd
log processing, this puts it back.

Change-Id: If0516e1187422cc76f2b3eaac82280504f94cec0
This commit is contained in:
Sean Dague 2017-04-28 07:45:19 -04:00
parent bbef755ed8
commit f7aea1b29c
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ SYSLOG_MATCH = ('^(?P<date>%s)(?P<line> (?P<host>[\w\-]+) '
'(?P<service>[^\[\s]+):.*)' %
(SYSLOGDATE))
SYSTEMD_MATCH = (
'^(?P<date>%s) (?P<line>(?P<host>\S+) \S+\[\d+\]\: (?P<status>%s)?.*)' %
'^(?P<date>%s)(?P<line> (?P<host>\S+) \S+\[\d+\]\: (?P<status>%s)?.*)' %
(SYSLOGDATE, STATUSFMT))
CONSOLE_MATCH = '^(?P<date>%s)(?P<line>.*)' % DATEFMT