This guide installs Fluentd on a Linux server and sets up a basic log pipeline.
On Debian/Ubuntu, use the official td-agent package:
curl -fsSL https://toolbelt.treasuredata.com/sh/install-debian-bullseye-td-agent4.sh | sudo sh
On RHEL-based systems, use the corresponding td-agent install script from the official documentation.
Edit the main configuration file:
sudo nano /etc/td-agent/td-agent.conf
Add a basic pipeline that listens for logs and writes to a file:
<source>
@type forward
port 24224
</source>
<match **>
@type file
path /var/log/td-agent/forward
</match>
sudo systemctl enable --now td-agent
echo {message:hello} | fluent-cat test
See Fluentd Configuration for configuration guidance.
Any questions?
Feel free to contact us. Find all contact information on our contact page.
Prefer automation? See Fluentd Ansible Setup for an example playbook.
Prefer containers? See Fluentd Docker Setup.
See Fluentd Security for hardening guidance.