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 EC2 instance running Microsoft Windows, see Sending Performance Counters to CloudWatch and Logs to CloudWatch Logs in the Amazon EC2 User Guide for 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
- Quick Start: Install and Configure the CloudWatch Logs Agent on an Existing Amazon EC2 Instance
- Quick Start: Install and Configure the CloudWatch Logs Agent on a New Amazon EC2 Instance
- Quick Start: Install the CloudWatch Logs Agent Using AWS OpsWorks and Chef
- Quick Start: Using AWS CloudFormation to Send Log Data to CloudWatch Logs
- Report the CloudWatch Logs Agent's Status
- Start the CloudWatch Logs Agent
- Stop the CloudWatch Logs Agent
- CloudWatch Logs Agent Reference
- Viewing Log Data
- Changing Log Retention