td-agent was discontinued in December 2023 and has been replaced by fluent-package. The fluent-package is the official successor maintained by the Cloud Native Computing Foundation.
Upgrade fluent-package regularly to keep the daemon current.
- Basic knowledge of Treasure Data.
- Basic knowledge of Fluentd.
BugFix version upgrades are indicated in this format: Major.Minor.BugFix. For example 6.0.0 to 6.0.1. The last number is incremented.
Use apt (Ubuntu/Debian) or yum (RHEL/CentOS) to upgrade the fluent-package.
# Ubuntu/Debian
sudo apt-get update && sudo apt-get install fluent-package
# RHEL/CentOS
sudo yum update && sudo yum install fluent-packageFor major version upgrades, see the Fluentd migration guide.
Access the appropriate operating system page:
- Installing Fluentd on RHEL and CentOS
- Installing Fluentd on AWS Linux
- Installing Fluentd on Ubuntu and Debian
When updating fluent-package, you must restart the daemon. During this time, your application may post logs to Fluentd.
If you're using td-logger-ruby or td-logger-java, the logger library itself buffers the logged events up to a certain amount of data. When the daemon returns, the buffered events are flushed to Fluentd.
If you're using other languages, no buffering mechanism is implemented. So if you don't want to lose your logs, stop your applications first (by separating the app run from your load balancer or terminating the process, and so on) and then upgrade fluent-package.