
Disable the additional watch timer (enable_watch_timer). Setting this parameter to false will significantly reduce CPU and I/O consumption when tailing a large number of files on systems with inotify support. Change-Id: Ib432e6cdece01dbb94b3d2f3d7fbdd04b81d25fa
13 lines
437 B
Django/Jinja
13 lines
437 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}) \[(?<severity_label>\S+)\] (?<Payload>.*)/
|
|
time_format %y%m%d %k:%M:%S
|
|
enable_watch_timer false
|
|
</source>
|