This repository was archived by the owner on May 6, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 23
This repository was archived by the owner on May 6, 2020. It is now read-only.
Restarting container causes fluentd.conf to duplicate config #68
Copy link
Copy link
Open
Description
Logs of a deis fluentd container during it's first run:
ubuntu@ip-172-20-12-148:~$ sudo docker logs cf1ae5af2bc1
2016-10-24 18:45:58 +0000 [info]: reading config file path="/opt/fluentd/conf/fluentd.conf"
2016-10-24 18:45:58 +0000 [info]: starting fluentd-0.14.4
2016-10-24 18:45:58 +0000 [info]: spawn command to main: /usr/bin/ruby2.3 -Eascii-8bit:ascii-8bit /usr/local/bin/fluentd -c /opt/fluentd/conf/fluentd.conf --under-supervisor
2016-10-24 18:45:58 +0000 [info]: reading config file path="/opt/fluentd/conf/fluentd.conf"
2016-10-24 18:45:58 +0000 [info]: starting fluentd-0.14.4 without supervision
2016-10-24 18:45:58 +0000 [info]: gem 'fluent-mixin-config-placeholders' version '0.4.0'
2016-10-24 18:45:58 +0000 [info]: gem 'fluent-mixin-plaintextformatter' version '0.2.6'
2016-10-24 18:45:58 +0000 [info]: gem 'fluent-mixin-rewrite-tag-name' version '0.1.0'
2016-10-24 18:45:58 +0000 [info]: gem 'fluent-plugin-deis_output' version '0.1.0'
2016-10-24 18:45:58 +0000 [info]: gem 'fluent-plugin-elasticsearch' version '1.6.0'
2016-10-24 18:45:58 +0000 [info]: gem 'fluent-plugin-kubernetes_metadata_filter' version '0.25.3'
2016-10-24 18:45:58 +0000 [info]: gem 'fluent-plugin-remote_syslog' version '0.3.2'
2016-10-24 18:45:58 +0000 [info]: gem 'fluent-plugin-sumologic-mattk42' version '0.0.4'
2016-10-24 18:45:58 +0000 [info]: gem 'fluentd' version '0.14.4'
2016-10-24 18:45:58 +0000 [info]: gem 'fluentd' version '0.14.0'
2016-10-24 18:45:58 +0000 [info]: adding filter pattern="kubernetes.**" type="kubernetes_metadata"
2016-10-24 18:45:59 +0000 [info]: adding match pattern="**" type="copy"
2016-10-24 18:45:59 +0000 [info]: adding source type="tail"
2016-10-24 18:45:59 +0000 [info]: using configuration file: <ROOT>
<source>
@type tail
path "/var/log/containers/*.log"
pos_file "/var/log/containers.log.pos"
tag "kubernetes.*"
format json
read_from_head false
</source>
<filter kubernetes.**>
@type kubernetes_metadata
kubernetes_url "https://172.28.0.1:443"
bearer_token_file "/var/run/secrets/kubernetes.io/serviceaccount/token"
verify_ssl false
</filter>
<match **>
@type copy
<store>
@type "deis"
</store>
</match>
</ROOT>
[... and so on ...]
If I restart the container, the config is duplicated:
ubuntu@ip-172-20-12-148:~$ sudo docker restart cf1ae5af2bc1
cf1ae5af2bc1
ubuntu@ip-172-20-12-148:~$ sudo docker logs cf1ae5af2bc1
[... previous logs ...]
2016-10-26 18:46:46 +0000 [info]: reading config file path="/opt/fluentd/conf/fluentd.conf"
2016-10-26 18:46:46 +0000 [info]: starting fluentd-0.14.4 without supervision
2016-10-26 18:46:46 +0000 [info]: gem 'fluent-mixin-config-placeholders' version '0.4.0'
2016-10-26 18:46:46 +0000 [info]: gem 'fluent-mixin-plaintextformatter' version '0.2.6'
2016-10-26 18:46:46 +0000 [info]: gem 'fluent-mixin-rewrite-tag-name' version '0.1.0'
2016-10-26 18:46:46 +0000 [info]: gem 'fluent-plugin-deis_output' version '0.1.0'
2016-10-26 18:46:46 +0000 [info]: gem 'fluent-plugin-elasticsearch' version '1.6.0'
2016-10-26 18:46:46 +0000 [info]: gem 'fluent-plugin-kubernetes_metadata_filter' version '0.25.3'
2016-10-26 18:46:46 +0000 [info]: gem 'fluent-plugin-remote_syslog' version '0.3.2'
2016-10-26 18:46:46 +0000 [info]: gem 'fluent-plugin-sumologic-mattk42' version '0.0.4'
2016-10-26 18:46:46 +0000 [info]: gem 'fluentd' version '0.14.4'
2016-10-26 18:46:46 +0000 [info]: gem 'fluentd' version '0.14.0'
2016-10-26 18:46:46 +0000 [info]: adding filter pattern="kubernetes.**" type="kubernetes_metadata"
2016-10-26 18:46:47 +0000 [info]: adding match pattern="**" type="copy"
2016-10-26 18:46:47 +0000 [info]: adding filter pattern="kubernetes.**" type="kubernetes_metadata"
2016-10-26 18:46:47 +0000 [info]: adding match pattern="**" type="copy"
2016-10-26 18:46:47 +0000 [info]: adding filter pattern="kubernetes.**" type="kubernetes_metadata"
2016-10-26 18:46:47 +0000 [info]: adding match pattern="**" type="copy"
2016-10-26 18:46:47 +0000 [info]: adding source type="tail"
2016-10-26 18:46:47 +0000 [info]: adding source type="tail"
2016-10-26 18:46:47 +0000 [info]: adding source type="tail"
2016-10-26 18:46:47 +0000 [info]: using configuration file: <ROOT>
<source>
@type tail
path "/var/log/containers/*.log"
pos_file "/var/log/containers.log.pos"
tag "kubernetes.*"
format json
read_from_head false
</source>
<filter kubernetes.**>
@type kubernetes_metadata
kubernetes_url "https://172.28.0.1:443"
bearer_token_file "/var/run/secrets/kubernetes.io/serviceaccount/token"
verify_ssl false
</filter>
<match **>
@type copy
<store>
@type "deis"
</store>
</match>
<source>
@type tail
path "/var/log/containers/*.log"
pos_file "/var/log/containers.log.pos"
tag "kubernetes.*"
format json
read_from_head false
</source>
<filter kubernetes.**>
@type kubernetes_metadata
kubernetes_url "https://172.28.0.1:443"
bearer_token_file "/var/run/secrets/kubernetes.io/serviceaccount/token"
verify_ssl false
</filter>
<match **>
@type copy
<store>
@type "deis"
</store>
</match>
<source>
@type tail
path "/var/log/containers/*.log"
pos_file "/var/log/containers.log.pos"
tag "kubernetes.*"
format json
read_from_head false
</source>
<filter kubernetes.**>
@type kubernetes_metadata
kubernetes_url "https://172.28.0.1:443"
bearer_token_file "/var/run/secrets/kubernetes.io/serviceaccount/token"
verify_ssl false
</filter>
<match **>
@type copy
<store>
@type "deis"
</store>
</match>
</ROOT>
[... and so on ...]
I'm not sure what's up yet. Looking into it now. Apologies in advance if this is already known or intentional behavior.
Metadata
Metadata
Assignees
Labels
No labels