Reroute docker logs to docker label
Related-bug: PROD-26228 (PROD:26228)
Change-Id: Ibd9983215188f8d523b53b92699a75c3c3fb76b6
diff --git a/linux/meta/fluentd.yml b/linux/meta/fluentd.yml
index 0f73580..90fa6d4 100644
--- a/linux/meta/fluentd.yml
+++ b/linux/meta/fluentd.yml
@@ -95,6 +95,16 @@
type: relabel
label: telegraf
{%- endif %}
+ {%- if pillar.get('docker', {}).get('host', {}).get('enabled', False) %}
+ push_to_docker:
+ require_in:
+ - push_to_default
+ require:
+ - rewrite_tag
+ tag: 'docker.**'
+ type: relabel
+ label: docker
+ {%- endif %}
push_to_default:
tag: '*.systemd'
type: copy