

Processes sending logs to the same log stream will encounter sequence token synchronization errors and spend extra resourcesĪutomatically recovering from them. Because logs must be submitted sequentially to each log stream, independent

info ( dict ( foo = "bar", details = ) or otherwise make it unique per source using aĬombination of these template variables. Install awscli and set your AWS credentials (run aws configure). Installation pip install watchtower Synopsis Message, while guaranteeing a delivery deadline (60 seconds by default). It aggregates logs into batches to avoid sending an API request per each log To install a system-wide log collector like awscli-cwlogs and round-trip It uses the boto3 AWS SDK, and lets you plug your application logging directly into CloudWatch without the need Watchtower, in turn, is a lightweight adapter between the Python logging system and CloudWatch Logs.

It is conceptually similar to services like Splunk, Datadog,Īnd Loggly, but is more lightweight, cheaper, and tightly integrated with the rest of AWS. Watchtower is a log handler for Amazon Web Services CloudWatch Logs.ĬloudWatch Logs is a log management service built into AWS.
