# Installing TD Agent on AWS Linux Treasure Agent (td-agent) is a stable distribution package of Fluentd, which is maintained by Treasure Data and the [Cloud Native Computing Foundation](https://www.cncf.io/projects/). - [Before Installation](#before-installation) - [Install or Upgrade td-agent](#install-or-upgrade-td-agent) - [Other Resources](#other-resources) ## Before Installation You can learn more about how to prepare for the installation at [Fluentd Installation Guide](https://docs.fluentd.org/installation/before-install). ## Install or Upgrade td-agent You can either install or upgrade from a previous version using the following methods. We recommend the latest version of td-agent, which can be downloaded from [www.fluentd.org](http://www.fluentd.org/). Learn more about how this version [compares to earlier versions](https://docs.fluentd.org/quickstart/td-agent-v2-vs-v3-vs-v4). | **Platform** | **Platform Version** | **Package or Installer** | | --- | --- | --- | | Amazon Linux | Amazon Linux 2 (64-bit) | td-agent v4 | | Amazon Linux | Amazon Linux 1 (64-bit) | td-agent v3 (legacy) | - [Installation Guide](https://docs.fluentd.org/installation/install-by-rpm#amazon-linux) ### Amazon Linux Amazon Linux repositories typically support two 64-bit releases at a time. For example, if the latest version is `2017.09`, packages are provided for both `2017.09` and `2017.03`. ```bash # Amazon Linux 2 (td-agent 4) curl -L https://toolbelt.treasuredata.com/sh/install-amazon2-td-agent4.sh | sh # Legacy support for EOL Amazon Linux 1 (td-agent 3) curl -L https://toolbelt.treasuredata.com/sh/install-amazon1-td-agent3.sh | sh ``` The scripts rely on `$releasever` being formatted as `year.month` (for example `2017.09`). Some AWS services override this format, which causes installation failures. If your environment’s `$releasever` differs, update it to match the expected format or set up the Treasure Data repository manually. ## Other Resources - [td-agent change log](/products/customer-data-platform/integration-hub/streaming/td-agent/td-agent-logs-sent-to-treasure-data) - [Continuous Data Import with td-agent](https://docs.treasuredata.com/smart/project-integrations/fluentd-continuous-data-import-integration)