td-agent is a stable distribution package of Fluentd, which is maintained by Treasure Data.
The installation from Ruby gem presents some difficulties for most users, so we made the package easier to install and use. Learn about the difference between Fluentd and td-agent.
It's highly recommended that you set up
ntpd on the nodes to sync the clock. Otherwise, the logs could contain invalid timestamps.
Install or Upgrade
You can either install or upgrade from a previous version using the following methods. We recommend using td-agent4 as this is the currently maintained version.
Redhat / CentOS
CentOS and RHEL 7, 8 64-bit are currently supported.
Executing install-redhat-td-agent4.sh automatically installs td-agent on your machine. The shell script registers a new rpm repository at /etc/yum.repos.d/td.repo and installs the td-agent rpm package.
Redhat / CentOS
CentOS and RHEL 6, 7, 8 64-bit are currently supported.
Executing install-redhat-td-agent3.sh automatically installs td-agent on your machine. The shell script registers a new rpm repository at /etc/yum.repos.d/td.repo and installs the td-agent rpm package.
We use $releasever as the repository path in the script. Use only a major version (such as ver. 7) of RHEL or CentOS as your run environment for $releasever. If your environment uses a version level such as "7.2", change it to a major version or set up the TD repository manually.
td-agent provides 2 scripts:
systemd (td-agent4 / td-agent3)
The /usr/lib/systemd/system/td-agent script is provided to start, stop, or restart the agent.
If you want to customize systemd behavior, put your
init.d (td-agent2 / td-agent3)
/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
If you have many machines on which to install td-agent, consider using the OpsCode chef cookbook, to automate this td-agent process. For the td-agent cookbook, refer to: https://github.com/treasure-data/chef-td-agent.
The ChangeLog for td-agent is available here.
For those who are using Treasure Data, refer to the following document too.