4bce67c540
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
13 lines
446 B
Django/Jinja
13 lines
446 B
Django/Jinja
{% set fluentd_dir = 'td-agent' if kolla_base_distro in ['ubuntu', 'debian'] else 'fluentd' %}
|
|
<source>
|
|
@type tail
|
|
path /var/log/kolla/mariadb/mariadb.log
|
|
pos_file /var/run/{{ fluentd_dir }}/mariadb.pos
|
|
tag infra.mariadb
|
|
format multiline
|
|
format_firstline /^\d{6}/
|
|
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
|
|
enable_watch_timer false
|
|
</source>
|