by Dinis Cruz and ChatGPT Deep Research, 22-Feb-2025
Overview: This whitepaper describes an architecture for capturing Amazon CloudFront requests using AWS Lambda@Edge and forwarding the logs to OpenObserve for centralized analysis. We integrate CloudFront (as the content delivery network) with a logging Lambda@Edge function that sends request details to OpenObserve, an open-source observability platform. This approach provides near real-time visibility into CDN traffic without waiting for standard CloudFront access logs (which can have delays of up to 24 hours (amazon web services - How to capture lambda @edge requests to kinesis? - Stack Overflow)). OpenObserve’s analytics engine allows us to search and visualize these logs with custom dashboards and real-time alerts ([Monitoring CloudFront Access Logs with K