Fluentd: fix Mariadb mysqld_safe log not match

The following warning logs appears in fluentd container:

[warn]: pattern not match: "170908 21:34:12 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql/"

This patch fix it

Change-Id: I9820b8c5fd3456ba9c032fdf326c65632d147e50
Closes-Bug: #1708571
This commit is contained in:
Bertrand Lallau 2017-09-08 22:10:45 +02:00 committed by Bertrand Lallau
parent 70bb073bd3
commit 4bce67c540

View File

@ -6,7 +6,7 @@
tag infra.mariadb tag infra.mariadb
format multiline format multiline
format_firstline /^\d{6}/ format_firstline /^\d{6}/
format1 /^(?<time>\d{6} \d{1,2}:\d{1,2}:\d{1,2}) \[(?<log_level>\S+)\] (?<Payload>.*)/ format1 /^(?<time>\d{6} \d{1,2}:\d{1,2}:\d{1,2}) (\[(?<log_level>\S+)\]|mysqld_safe) (?<Payload>.*)/
time_format %y%m%d %k:%M:%S time_format %y%m%d %k:%M:%S
enable_watch_timer false enable_watch_timer false
</source> </source>