Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign updocker_log include only one label - even with a exclude * #6456
Comments
|
According to the documentation for I may be wrong, but I don't believe there are plans to change this behavior as it would break compatibility. You can use the |
|
Thats right, unlike I wonder if adding a At any rate, let's clarify this is in the documentation what include/exclude means on these options. |
Relevant telegraf.conf:
System info:
Docker version :
1.03.2Telegraf version :
1.12.2deployed as a docker service with the docker.sock mapped as a volume.Relevant docker-compose.yml
Steps to reproduce:
java-logs=true(added on service and container levels)Expected behavior:
Only get the logs of the container with the
java-logslabel.Actual behavior:
I get the logs from all containers, none are excluded.
Additional info:
Currently the logs are sent to Fluentd tcp listener that will then parse with grok the relevant log messages. But I would like only my java labeled containers to be parsed. Not all the cluster containers logs.