How to capture docker logs

I have Docker containers deployed under Kubernetes. I need to capture the Docker logs which are sent to its console, and I would like to avoid dumping those logs in a file for each container.

What is the best way to capture those logs for Logstash? Is the TCP plugin suitable for this or is there a better recommendation?

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.