Loading video...

Logs and Insights

CloudWatch Logs Insights helps you analyze, filter, and visualize logs from AWS services. Using structured JSON logs makes querying and aggregation much easier. Lambda Powertools and Middy are recommended for structured logging and middleware in Lambda functions. You can use features like log retention, masking sensitive data, and Live Tail for real-time log monitoring. Logs Insights supports SQL-like queries, visualizations, and sharing queries with your team for easier debugging and monitoring.

Transcript

Hey, let's talk next about CloudWatch Logs Insights. So I think CloudWatch is most popular known for being a logging solution. So you have your logs of each AWS service.

Within CloudWatch. But there's actually much more to it and especially much more to analyzing your logs and getting value out of your logs. This is what this chapter will be about. So we cover a lot of CloudWatch logs.... Purchase the full course to access the complete transcript.

Full Course

$259USD, one-time fee
Buy now
01:18:12

Major Learnings

  • Structured JSON logs make analyzing and querying in CloudWatch much easier.
  • Lambda Powertools and Middy help with consistent, structured logging and middleware in Lambda functions.
  • Logs Insights offers SQL-like queries, aggregation, and visualization for deep log analysis.
  • Features like log retention, data masking, and Live Tail improve security and real-time monitoring.

Next Steps

  • 1.Switch your Lambda logs to structured JSON format using Powertools.
  • 2.Set log retention policies in your infrastructure code to control storage and costs.
  • 3.Try out Logs Insights queries and visualizations on your log groups.
  • 4.Enable data masking for sensitive fields and test Live Tail for real-time debugging.