AWS logs: Lambda
Complexity: Simple | Infrastructure: Serverless | Latency: Event-driven
This is the Logs with Lambda method, which deploys the Lambda Promtail function. The docs recommend it for ALB, CloudFront, and CloudTrail logs stored in S3. You deploy a Lambda function that triggers on events. When the logs are available, Lambda adds labels and forwards them to Grafana Cloud Logs.
Log types collected with Lambda
Considerations
- Event-driven and automatic
- Serverless, with no infrastructure to manage
- Labels and relabeling configured through environment variables
- Cost that scales with log volume
Documentation
View the AWS Lambda logs documentation.