How newrelic/aws-log-ingestion works
This is an AWS Lambda application that ingests CloudWatch Logs and forwards data to New Relic. The main workflow decodes the CloudWatch event and processes it for delivery; the README also documents log and infrastructure ingestion, configurable log formats and tags, and payload size/encoding requirements. The sampled source is partial, so links between processing stages and individual exporters are omitted where their calls are not shown.
Main entry points: function.py Lambda handler
Components 11
Ingestion
- Lambda handler
src/function.py - Event decoding
src/function.py
Log processing
- Entry classification
src/function.py - Log processing
src/function.py - Tag enrichment
src/function.py - Payload formatting
src/function.py
New Relic delivery
- Delivery dispatch
src/function.py - HTTP transport
src/function.py
Other components
- CloudWatch Logs
- New Relic infrastructure
- New Relic logging
Connections 6
- CloudWatch Logs → Lambda handler: invokes
src/function.py - Lambda handler → Event decoding: decodes
src/function.py - Lambda handler → Delivery dispatch: invokes
src/function.py - Delivery dispatch → Entry classification: classifies
src/function.py - HTTP transport → New Relic infrastructure: posts data
- HTTP transport → New Relic logging: posts data