Last updated
Last updated
This article explains how to use the official , maintained by .
Please download and install from here:
Then, download Fluentd edge-debian's (edge-debian means latest version of Fluentd) image by docker pull
command:
Debian and Alpine Linux version is available for Fluentd image. Debian version is recommended officially since it has support. However, the Alpine image is smaller.
To make the test simple, create the example config below at $(pwd)/tmp/fluentd.conf
. This example accepts records from http
, and outputs to stdout
.
Finally, you can run Fluentd with docker run
command:
Use curl
command to post sample logs via HTTP like this:
Use docker ps
command to retrieve container ID and use docker logs
command to check the specific container's log like this:
Now, you know how to use Fluentd via Docker.
Here are some Docker related resources for Fluentd:
Also, refer to the following tutorials to learn how to collect data from various data sources:
Basic Configuration
Application Logs
Examples
If this article is incorrect or outdated, or omits critical information, please . is an open-source project under . All components are available under the Apache 2 License.