Skip to content
Snippets Groups Projects
02-mariadb.conf.j2 406 B
Newer Older
{% set fluentd_dir = 'td-agent' if kolla_base_distro in ['ubuntu', 'debian'] else 'fluentd' %}
zhubingbing's avatar
zhubingbing committed
<source>
  @type tail
  path /var/log/kolla/mariadb/mariadb.log
  pos_file /var/run/{{ fluentd_dir }}/mariadb.pos
zhubingbing's avatar
zhubingbing committed
  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>