Merge "Fluentd: manage multiline log pattern"

This commit is contained in:
Jenkins 2017-09-04 13:13:55 +00:00 committed by Gerrit Code Review
commit ff7688c229
3 changed files with 6 additions and 8 deletions

View File

@ -60,7 +60,6 @@
with_items:
- "apache_access"
- "wsgi_access"
- "wsgi_python"
notify:
- Restart fluentd container

View File

@ -45,5 +45,10 @@
"/var/log/kolla/*/*-error.log"]
pos_file /var/run/{{ fluentd_dir }}/kolla-openstack.pos
tag kolla.*
format /^(?<message>.*)$/
format multiline
format_firstline /^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}.\d{3} \d+ \S+ \S+ \[(req-\S+ \S+ \S+ \S+ \S+ \S+|-)\]/
format1 /^(?<Timestamp>\S+ \S+) (?<Pid>\d+) (?<log_level>\S+) (?<python_module>\S+) (\[(req-(?<request_id>\S+) (?<user_id>\S+) (?<tenant_id>\S+) (?<domain_id>\S+) (?<user_domain>\S+) (?<project_domain>\S+)|-)\])? (?<Payload>.*)?$/
time_key Timestamp
time_format %F %T.%L
ignore_repeated_permission_error true
</source>

View File

@ -64,12 +64,6 @@
"dest": "{{ fluentd_dir }}/format/wsgi_access.conf",
"owner": "{{ fluentd_user }}",
"perm": "0600"
},
{
"source": "{{ container_config_directory }}/format/wsgi_python.conf",
"dest": "{{ fluentd_dir }}/format/wsgi_python.conf",
"owner": "{{ fluentd_user }}",
"perm": "0600"
},{% if enable_elasticsearch | bool or
( elasticsearch_address != kolla_internal_vip_address ) | bool %}
{