Skip to main content

Log



Resource Icon

Resource Overview

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

Associated Resources

Parent Resources

Resource Setting Values

  • retention_in_days: How long the log group is storing logs
  • kms_key_name: The name of the KMS key to use to encrypt log data
  • log_stream_name: Name of Log Stream
  • metric_filter: The name of the metric filter for the log group, up to 512 characters
    • pattern: A valid CloudWatch Logs filter pattern for extracting metric data out of ingested log events
    • metric_name: The name of the CloudWatch metric to which the monitored log information should be published, Specify up to 255 characters, all characters are valid except colon (:), asterisk (*), dollar sign ($), and space ( )
    • metric_namespace: The destination namespace of the CloudWatch metric, Specify up to 255 characters, all characters are valid except colon (:), asterisk (*), dollar sign ($), and space ( )
    • metric_value: What to publish to the metric, Valid metric values are floating-point numbers (1, 99.9, etc.), numeric field identifiers (1 USD, 2 USD, etc.), or named field identifiers (such as $requestSize in a symbol-delimited filter pattern, or $ in a JSON-based filter pattern. status - a dollar sign ($) or a dollar sign and a dot ($.) followed by alphanumeric and/or underscore (_) characters)

Reference Materials