Merge "Reroute docker logs to docker label"
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