I’ve got a single docker running a ruby on rails container app on an Ubuntu host. Currently, I’ve got a telegraf collector agent running on the Ubuntu host collecting docker, host, cpu and memory metrics but I want to collect the docker stdout application logs being generated from inside the container. The rails app is forwarding logs to stdout so essentially the docker command to get these logs from the host looks like this:
docker logs redis-db
Is there a way to use any of telegraf plugins like docker or tail to tail the docker stdout logs from the container? Id prefer not to add telegraf to my docker images if possible. Any help would be appreciated!