Treasure Agent (td-agent) is a stable distribution package of Fluentd, which is maintained by Treasure Data and the Cloud Native Computing Foundation.
You can learn more about how to prepare for the installation at Fluentd Installation Guide.
Install or Upgrade td-agent
You can install or upgrade from a previous version using the following methods. We recommend the latest version of td-agent, which can be downloaded from the www.fluentd.org website.
Learn more about how this version compares to earlier versions.
Package or Installer
2.6+ Linux kernel (64-bit)
We currently provide td-agent4.x packages for Ubuntu Focal, Bionic, Xenial, and Debian Buster.
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/treasure-data.list and installs the
td-agent deb package.
For Ubuntu Focal,
For Ubuntu Bionic,
For Ubuntu Xenial,
For Debian Buster,
Legacy td-agent3.x is available for EOL versions Ubuntu Trusty, Debian Stretch, and Debian Jessie.
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/treasure-data.list and installs the td-agent deb package.
These commands set up td-agent package for you:
For Ubuntu Trusty,
For Debian Stretch,
For Debian Jessie,
Launch Daemon by systemd
The /lib/systemd/system/td-agent script is provided to start, stop, or restart the agent.
If you want to customize systemd behavior, put your td-agent.service into /etc/systemd/system
Launch Daemon by init.d
The /etc/init.d/td-agent script is provided to start, stop, or restart the agent.
The following commands are supported:
Make sure your configuration file is located at /etc/td-agent/td-agent.conf.
The logs are located under /var/log/td-agent. The daemon is running in td-agent user and td-agent group.
The config file is located at /etc/td-agent/td-agent.conf. After its modification, restart the agent.
See the OpsCode chef cookbook, to automate this process. Refer to: https://github.com/treasure-data/chef-td-agent.