Customize Fluentd docker image
What is Fluentd
Briefly speaking, Fluentd is an open source data collector, which lets you unify the data collection and consumption for a better use and understanding of data. Click here for more details.
You could use Fluentd by either installing the Fluentd agent manually as the daemon process or running a docker image. This article will mainly focus on how to build you own Fluentd docker image which fits your use cases.
Get started
Create folder with the following skeleton
Edit the
Dockerfile
fluent.conf
is required to build the custom docker image. It could be a default conf file. When you run the docker image the config file could be replaced from thedocker run
command.
The following fluent.conf is just an example for fetching the systemd log:
You could leave plugins folder empty in this example
Build the new image by using
docker build
commandRefer to the official doc for running the container with your own configuration files and other additional options.
Last updated