From cfeb9dd9ef1d891904c9112c35b2189d5032815c Mon Sep 17 00:00:00 2001 From: Doug Szumski Date: Mon, 17 Jun 2019 14:58:12 +0000 Subject: [PATCH] Don't drop unmatched Kolla service logs Kolla service logs which don't match a Fluentd rewriterule get dropped. This change prevents that by tagging them with 'unmatched'. Change-Id: I0a2484d878d5c86977fb232a57c52f874ca7a34c --- .../common/templates/conf/filter/01-rewrite-0.12.conf.j2 | 1 + .../common/templates/conf/filter/01-rewrite-0.14.conf.j2 | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/ansible/roles/common/templates/conf/filter/01-rewrite-0.12.conf.j2 b/ansible/roles/common/templates/conf/filter/01-rewrite-0.12.conf.j2 index 170190a047..edb201d928 100644 --- a/ansible/roles/common/templates/conf/filter/01-rewrite-0.12.conf.j2 +++ b/ansible/roles/common/templates/conf/filter/01-rewrite-0.12.conf.j2 @@ -35,4 +35,5 @@ rewriterule32 programname ^(blazar-api|blazar-manager)$ openstack_python rewriterule33 programname ^(cyborg-api|cyborg-conductor|cyborg-agent)$ openstack_python rewriterule34 programname ^(monasca-api|monasca-notification|monasca-persister|agent-collector|agent-forwarder|agent-statsd)$ openstack_python + rewriterule35 programname .+ unmatched diff --git a/ansible/roles/common/templates/conf/filter/01-rewrite-0.14.conf.j2 b/ansible/roles/common/templates/conf/filter/01-rewrite-0.14.conf.j2 index e1757839ee..11c0549cfa 100644 --- a/ansible/roles/common/templates/conf/filter/01-rewrite-0.14.conf.j2 +++ b/ansible/roles/common/templates/conf/filter/01-rewrite-0.14.conf.j2 @@ -176,4 +176,9 @@ pattern ^(monasca-api|monasca-notification|monasca-persister|agent-collector|agent-forwarder|agent-statsd)$ tag openstack_python + + key programname + pattern .+ + tag unmatched +