kolla-ansible/ansible/roles/common/templates/conf/input/04-openstack-wsgi.conf.j2
Doug Szumski 571e4fca63 Standardise log field naming
Use the same field name for extracting all log messages to make it
simpler to parse the output from fluentd.

Closes-Bug: #1723459

Change-Id: I55b86061c8f70b25cf88e394fdfc78fa3c85c79f
2017-10-13 16:31:26 +01:00

11 lines
379 B
Django/Jinja

# Note (blallau): to manage Apache and WSGI log files
{% set fluentd_dir = 'td-agent' if kolla_base_distro in ['ubuntu', 'debian'] else 'fluentd' %}
<source>
@type tail
path /var/log/kolla/*/*-access.log,/var/log/kolla/*/*-error.log
pos_file /var/run/{{ fluentd_dir }}/kolla-openstack-wsgi.pos
tag kolla.*
format /^(?<Payload>.*)$/
enable_watch_timer false
</source>