From 14e9d9fb3d08f6d4c417ac1ca2b6c4deaab2732a Mon Sep 17 00:00:00 2001 From: zhubingbing Date: Thu, 3 Aug 2017 16:13:54 +0800 Subject: [PATCH] Fix openstack_python not accurate match http://paste.openstack.org/show/617484/ Change-Id: I1c771b8012c12300adb611b85898bbf2ef2fe67f Closes-Bug: #1708449 --- ansible/roles/common/templates/conf/format/wsgi_python.conf.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible/roles/common/templates/conf/format/wsgi_python.conf.j2 b/ansible/roles/common/templates/conf/format/wsgi_python.conf.j2 index ff7435557e..926a32fec4 100644 --- a/ansible/roles/common/templates/conf/format/wsgi_python.conf.j2 +++ b/ansible/roles/common/templates/conf/format/wsgi_python.conf.j2 @@ -3,7 +3,7 @@ reserve_data true format grok key_name message - grok_pattern %{TIMESTAMP_ISO8601:Timestamp} %{NUMBER:Pid} %{LOGLEVEL:severity_label} %{NOTSPACE:python_module} \[req-(?:%{NOTSPACE:request_id}) (?:%{NOTSPACE:user_id}) (?:%{NOTSPACE:tenant_id}) .*\] %{GREEDYDATA:Payload} + grok_pattern %{TIMESTAMP_ISO8601:Timestamp} %{NUMBER:Pid} %{LOGLEVEL:severity_label} %{NOTSPACE:python_module} \[(?:req-(?:%{NOTSPACE:request_id}) (?:%{NOTSPACE:user_id}) (?:%{NOTSPACE:tenant_id}) .*|-)\] %{GREEDYDATA:Payload} time_format "%Y-%m-%d %H:%M:%S.%L" time_key Timestamp keep_time_key true