Logging using fluentd, with Jenkins (stdout, stderr) running in a container

16 views
Skip to first unread message

Ramanathan Muthaiah

unread,
Jan 13, 2019, 11:54:35 PM1/13/19
to Jenkins Users
Hey,

On a CentOS vm, am running fluentbit (as td-agent) configured with basic options.

1. Running a simple ubuntu container with a) /bin/bash or b) /bin/echo "Hello World" echoes the output (from the container) in the td-agent log at, /var/log/td-agent/td-agent.log

docker run -d -ti  --name  echome  ubuntu:latest  --log-driver=fluentd   --log-opt  tag=docker.{{ID}}  /bin/bash

docker run -d -ti  --name  echome  ubuntu:latest  --log-driver=fluentd   --log-opt  tag=docker.{{ID}}  /bin/echo "Hello World"


2. However, in my attempt to run Jenkins in a container, logs (from the running container) do not show up in the td-agent logs in '/var' folder.
docker run -d -ti  --name  cijenkins  jenkins/jenkins:lts  --log-driver=fluentd   --log-opt  tag=docker.{{ID}}  /bin/bash


Would appreciate any inputs or comments.

--
regards
Ram
Reply all
Reply to author
Forward
0 new messages