When you run your application, it generates logs that record pertinent information about the activity, or records of events. These logs, which can contain essential information about your app, its users, and everything in between, can be incredibly beneficial sources of information. Effective logs allow you to stop making assumptions about what’s happening in your code and instead focus on informed decision-making. However, the data is virtually useless if it isn’t stored, searched, and analyzed correctly.
In this post, I’ll provide a brief overview of good logging practices and examples of how you can use CloudWatch Logs Insights, a program designed to help you interactively search and analyze your log data, to better consume the logs you generate for your application.