Hi
I'm trying to use in_tail to collect docker container json logs from the docker sandbox directory using this configuration:
---- (td-agent) ---
<source>
@type tail
path /var/lib/docker/containers/*/*.log
pos_file /var/spool/td-agent/docker.log
format json
tag docker.**
@label @mainstream
</source>
----
However it doesn't appear that td-agent even tries to follow the docker logs.
Using a specific file path I do get in_tail reading logs though:
----
<source>
@type tail
path /var/lib/docker/containers/3232535ewewd2232/some.log
pos_file /var/spool/td-agent/*.log
format json
tag docker.**
</source>
----
Is there something specific I need to do to get in_tail correctly processing docker container logs? Is the wildcard format correct?
Thanks in advance for any help,
Traiano