Fluentd "progname" field not always generated
'progname' is actually only fullfilled for Openstack services logs. They are missing for MariaDB and RabbitMQ logs. When using Kibana, "progname" field appears empty, hence it's difficult to known where logs comes from. Change-Id: Ifcbfd981a34a8d64ea69d37934c7f0fae10a90b5 Closes-Bug: #1713412
This commit is contained in:
parent
38a6d30411
commit
61864637dc
ansible/roles/common/templates/conf
@ -6,3 +6,10 @@
|
||||
programname ${tag_parts[5]}
|
||||
</record>
|
||||
</filter>
|
||||
|
||||
<filter infra.*>
|
||||
@type record_transformer
|
||||
<record>
|
||||
programname ${tag_parts[1]}
|
||||
</record>
|
||||
</filter>
|
||||
|
@ -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>.*)/
|
||||
|
@ -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/
|
||||
|
Loading…
x
Reference in New Issue
Block a user