Customize Fluentd docker image
Last updated
Was this helpful?
Last updated
Was this helpful?
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 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.
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 the docker 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
command
Refer to the official for more details
All available fluentd plugins could be found
Refer to the official for running the container with your own configuration files and other additional options.