Skip to main content

Log



Resource Icon

Resource Overview

Amazon CloudWatch Logs enables you to monitor, store, and access system, application, and custom log files from Amazon Elastic Compute Cloud (Amazon EC2) instances, AWS CloudTrail, Route 53, and other sources. CloudWatch Logs allows you to centralize logs from all systems, applications, and AWS services you use in a single, highly scalable service. You can then easily view logs, search for specific error codes or patterns, filter based on specific fields, or securely archive logs for future analysis. With CloudWatch Logs, you can view all logs as a single, consistent stream of events ordered by time regardless of source, query and sort them by different dimensions, group them by specific fields, create custom calculations using a powerful query language, and visualize log data.

Associated Resources

Parent Resources

Connected Resources


Resource Configuration

Basic Settings

  • retention_in_days : Number of days to retain logs in the log group
  • kms_key_name : Name of the KMS key used to encrypt log data
  • log_stream_names : List of log stream names to create within the log group

Metric Filter Settings (metric_filter)

  • metric_filter.pattern : CloudWatch Logs filter pattern used to extract metric data from log events
  • metric_filter.metric_name : Name of the CloudWatch Metric where extracted metrics are published
  • metric_filter.metric_namespace : Namespace where the CloudWatch Metric is published
  • metric_filter.metric_value : Value to publish to the Metric
    • Numeric values, numeric field identifiers, and field references such as $requestSize, $.status are supported

Tag Settings (tag)

  • tag : List of tags used to categorize resources

References