Merge "Fluentd: Libvirt logs are missing"

This commit is contained in:
Jenkins 2017-09-12 08:20:17 +00:00 committed by Gerrit Code Review
commit 3d41e49887
3 changed files with 17 additions and 0 deletions

View File

@ -34,6 +34,7 @@
- "02-mariadb"
- "03-rabbitmq"
- "04-openstack-wsgi"
- "05-libvirt"
notify:
- Restart fluentd container

View File

@ -0,0 +1,10 @@
{% set fluentd_dir = 'td-agent' if kolla_base_distro in ['ubuntu', 'debian'] else 'fluentd' %}
<source>
@type tail
path /var/log/kolla/libvirt/libvirtd.log
pos_file /var/run/{{ fluentd_dir }}/libvirt.pos
tag infra.libvirt
format /^(?<Timestamp>\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}.\d{3}\+\d{4}): (?<Pid>\d+): (?<log_level>\S+) : (?<Payload>.*)?$/
time_key Timestamp
time_format %F %T.%L%z
</source>

View File

@ -41,6 +41,12 @@
"owner": "{{ fluentd_user }}",
"perm": "0600"
},
{
"source": "{{ container_config_directory }}/input/05-libvirt.conf",
"dest": "{{ fluentd_dir }}/input/05-libvirt.conf",
"owner": "{{ fluentd_user }}",
"perm": "0600"
},
{
"source": "{{ container_config_directory }}/filter/00-record_transformer.conf",
"dest": "{{ fluentd_dir }}/filter/00-record_transformer.conf",