Amazon CloudWatch
Developer Guide (API Version 2010-08-01)

Getting Started with CloudWatch Logs

You can publish log data from Amazon EC2 instances running Linux or Windows Server, and logged events from AWS CloudTrail. CloudWatch Logs can consume logs from resources in any region, but you can only view the log data in the CloudWatch console in the regions where CloudWatch Logs is supported. For more information, see Regions and Endpoints in the Amazon Web Services General Reference.

This section describes the steps necessary for installing the CloudWatch Logs agent on an Amazon EC2 instance running Amazon Linux, Ubuntu Server, CentOS, or Red Hat Enterprise Linux.

To get started with CloudWatch Logs on an Amazon EC2 instance running Microsoft Windows, see Sending Performance Counters to CloudWatch and Logs to CloudWatch Logs in the Amazon EC2 User Guide for Microsoft Windows Instances.

To get started with CloudWatch Logs and logged events in CloudTrail, see Sending CloudTrail Events to CloudWatch Logs in the AWS CloudTrail User Guide.

CloudWatch Logs Agent Prerequisites

The CloudWatch Logs agent requires Python version 2.6, 2.7, 3.0, or 3.3, and any of the following versions of Linux:

  • Amazon Linux version 2014.03.02 or later

  • Ubuntu Server version 12.04, or 14.04

  • CentOS version 6, 6.3, 6.4, 6.5, or 7.0

  • Red Hat Enterprise Linux (RHEL) version 6.5 or 7.0

  • Debian 8.0