Installation
Fluentd can be installed in several ways. This article gives an overview of them and explains which one to choose.
Before installing Fluentd, please follow the Pre-installation Guide to configure your OS properly.
Installation Methods
| Method | Platforms | Maintained by |
|---|---|---|
fluent-package |
Red Hat Linux, Amazon Linux, Debian, Ubuntu and Windows | Fluentd Project |
calyptia-fluentd |
Red Hat Linux, Amazon Linux, Debian, Ubuntu, macOS and Windows | Chronosphere |
| Docker image | Any platform which runs Docker | Fluentd Project |
| Ruby gem | Any platform which runs Ruby | Fluentd Project |
| Source | Any platform which runs Ruby | Fluentd Project |
fluent-package
fluent-package (formerly known as td-agent) is the stable distribution of Fluentd. It contains Ruby, Fluentd, a set of commonly used plugins and the scripts to run Fluentd as a service, so you do not need to set up Ruby by yourself. It is shipped in two flavors, the normal release version and the LTS (Long Term Support) version. See Scheduled support lifecycle announcement about Fluent Package v6 about the difference between them.
fluent-package for macOS is not shipped yet. See .dmg Package (macOS) for the status.
calyptia-fluentd
calyptia-fluentd is an alternative stable distribution of Fluentd, which is maintained by Chronosphere after its acquisition of Calyptia. Like fluent-package, it contains Ruby and a set of commonly used plugins. Check the guide for your platform for the supported OS versions.
- RPM Package (Red Hat Linux)
- DEB Package (Debian/Ubuntu)
- .dmg Package (macOS)
- .msi Installer (Windows)
Docker Image
The official Fluentd Docker image runs Fluentd in a container. On Kubernetes, the Fluentd DaemonSet runs Fluentd on each node to collect the logs of the node and its pods.
Ruby Gem
Fluentd is also published as the fluentd gem. You have to prepare Ruby, and install the plugins you need by yourself.
Source
You can build and install Fluentd from its git repository. This is useful for developers.
Which Method Should I Choose?
- To run Fluentd on a Linux or Windows server, use
fluent-package. Choose the LTS version if you prefer stability to new features. Iffluent-packagedoes not support your OS or its version, consider the Ruby gem. - To run Fluentd in containers or on Kubernetes, use the Docker image or the Fluentd DaemonSet.
- To run Fluentd on macOS, use the Docker image or the Ruby gem, because
fluent-packagefor macOS is not shipped yet. - To run Fluentd on a Ruby installation which you manage by yourself, use the Ruby gem.
- To develop Fluentd itself or to try a change which is not released yet, install from source.
If you need a lightweight log forwarder for edge devices or containers, consider Fluent Bit as well. It uses less CPU and memory than Fluentd, but has fewer features. See High Availability Config for a typical setup of forwarders and aggregators.
td-agent and fluent-package v5 have reached End of Life (EOL). Do not install them for a new deployment. Their installation guides are kept under "Obsolete Installation" for existing users.
After Installation
If you installed an RPM or DEB package, see Post Installation Guide for the next steps, such as where the configuration file is and how to install plugins. For other installations, see the guide for your platform and installation method.