Merge "Fluentd "progname" field not always generated"

This commit is contained in:
Jenkins 2017-09-04 13:41:46 +00:00 committed by Gerrit Code Review
commit 0e50f147e0
3 changed files with 9 additions and 2 deletions

View File

@ -6,3 +6,10 @@
programname ${tag_parts[5]}
</record>
</filter>
<filter infra.*>
@type record_transformer
<record>
programname ${tag_parts[1]}
</record>
</filter>

View File

@ -3,7 +3,7 @@
@type tail
path /var/log/kolla/mariadb/mariadb.log
pos_file /var/run/{{ fluentd_dir }}/mariadb.pos
tag mariadb.*
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>.*)/

View File

@ -3,7 +3,7 @@
@type tail
path /var/log/kolla/rabbitmq/rabbit.log
pos_file /var/run/{{ fluentd_dir }}/rabbit.pos
tag rabbit.*
tag infra.rabbitmq
format multiline
format_firstline /^\s*$/
format1 /^=(?<log_level>\w+) REPORT==== (?<Times>[^ ]+) ===\n/