DEB Package (Debian/Ubuntu)
This article explains how to install stable versions of fluent-package deb packages, the stable Fluentd distribution packages maintained by Fluentd Project.
What is fluent-package?
fluent-package?Please see fluent-package-v5-vs-td-agent.
How to install fluent-package
fluent-packageThe following are deprecated td-agent (EOL) information:
Step 0: Before Installation
Please follow the Pre-installation Guide to configure your OS properly.
Step 1: Install from Apt Repository
NOTE: If your OS is not supported, consider gem installation instead.
A shell script is provided to automate the installation process for each version. The shell script registers a new apt repository at /etc/apt/sources.list.d/fluent.sources (or /etc/apt/sources.list.d/fluent-lts.sources) and installs the fluent-package deb package.
For Ubuntu Noble:
fluent-package 6 (LTS)
fluent-package 6
fluent-package 5 (LTS)
fluent-package 5
For Ubuntu Jammy:
fluent-package 6 (LTS)
fluent-package 6
fluent-package 5 (LTS)
fluent-package 5
For Ubuntu Focal:
fluent-package 5 (LTS)
fluent-package 5
For Debian Trixie:
fluent-package 6
fluent-package 6
For Debian Bookworm:
fluent-package 6 (LTS)
fluent-package 6
fluent-package 5 (LTS)
fluent-package 5
For Debian Bullseye:
fluent-package 5 (LTS)
fluent-package 5
Step 2: Launch Daemon
systemd
systemdUse /lib/systemd/system/fluentd script to start, stop, or restart the agent:
To customize systemd behavior, put your fluentd.service in /etc/systemd/system.
NOTE: In fluent-package v5, path is different. /opt/fluent/bin instead of /opt/td-agent/bin
Step 3: Post Sample Logs via HTTP
The default configuration (/etc/fluent/fluentd.conf) is to receive logs at an HTTP endpoint and route them to stdout. For fluent-package logs, see /var/log/fluent/fluentd.log.
You can post sample log records with curl command:
Next Steps
You are now ready to collect real logs with Fluentd. Refer to the following tutorials on how to collect data from various sources:
Basic Configuration
If this article is incorrect or outdated, or omits critical information, please let us know. Fluentd is an open-source project under Cloud Native Computing Foundation (CNCF). All components are available under the Apache 2 License.
Last updated
Was this helpful?