Fluentd repo/packages are changed in depends changes below. Rpm distros need changes in their config for properly start and deploy fluentd containers. Change-Id: I474c4d20c407717c6da973383bbbd5539be480f1 Depends-On: I4802618373cfa53d67d1dfe65be7abe1950b3d04
12 lines
406 B
Django/Jinja
12 lines
406 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 mariadb.*
|
|
format multiline
|
|
format_firstline /^\d{6}/
|
|
format1 /^(?<time>\d{6} \d{1,2}:\d{1,2}:\d{1,2}) \[(?<severity_label>\S+)\] (?<Payload>.*)/
|
|
time_format %y%m%d %k:%M:%S
|
|
</source>
|