Amazon CloudWatch Logs
User Guide

Getting Started with CloudWatch Logs

To collect logs from your Amazon EC2 instances and on-premises servers into CloudWatch Logs, AWS offers two options:

  • Recommended – The unified CloudWatch agent. It enables you to collect both logs and advanced metrics with one agent. It offers support across operating systems, including servers running Windows Server. This agent also provides better performance.

    If you're using the unified agent to collect CloudWatch metrics, it enables the collection of additional system metrics, for in-guest visibility. It also supports collecting custom metrics using StatsD or collectd.

    For more information, see Installing the CloudWatch Agent in the Amazon CloudWatch User Guide.

  • Supported, but on the path to deprecation – The older CloudWatch Logs agent, which supports the collection of logs from only servers running Linux. If you're already using that agent, you may continue to do so.

    If you want to migrate from the CloudWatch Logs agent to the unified CloudWatch agent, the unified agent's configuration wizard can read your current CloudWatch Logs agent configuration file and set up the new agent to collect the same logs. For more information about the wizard, see Create the CloudWatch Agent Configuration File with the Wizard in the Amazon CloudWatch User Guide.