Section 3 · Cloud logs

Collect specific AWS log types using the Lambda agent.

Estimated time: 1 min

How it works

AWS logs Lambda architecture: Specific log types trigger Lambda to forward to Grafana Cloud Logs

Complexity: Simple | Infrastructure: Serverless | Latency: Event-driven

You deploy a Lambda function that triggers on events. When the logs are available, Lambda parses each format, adds labels, and forwards them to Grafana Cloud Logs.

Specific log types collected with Lambda

Log typeFormatKey insights
ALB Access LogsSpace-delimitedRequest latency, targets, status codes
CloudFront LogsTab-separatedEdge locations, cache hits
S3 Access LogsSpace-delimitedBucket access patterns
CloudTrailJSONAPI activity, audit

Considerations

  • Event-driven and automatic
  • Serverless, with no infrastructure to manage
  • Custom transformation of log data
  • Parsing configuration required for each log format
  • Cost that scales with log volume

Documentation

View the AWS Lambda logs documentation.