Find a Failing Request in CloudWatch Logs
Talk it through out loud with your AI coach.
The problem
- medium
- Pro
A customer reports a failed payment in your .NET service on AWS, and the CloudWatch logs are millions of lines of plain text built with string interpolation. Explain how you'd change the logging so you can find that request quickly next time, and how you'd search for it.
What a strong answer covers
- Logging values as data rather than text.
- A format the log service can query.
- Linking every line of one request together.
- Searching quickly, and keeping log volume and cost in check.
Common mistake: Logging everything at debug level in production to be safe, then struggling with the bill and the noise.
Knowing this is half of it. Saying it clearly out loud is the part the coach helps you practise.
Practise it out loud