All tutorials
AWS

Clean Up an AWS CloudWatch Log Export

4 min readFormatHubTools Tutorials

CloudWatch exports arrive as packed JSON. Here is a quick path from raw export to a readable Lambda error timeline.

  1. 1

    Export the log group

    In the CloudWatch console, open the log group for your function or service and use the download option for the time window around the incident. You get a JSON export where every event is an object with a timestamp, message, and log stream id.

  2. 2

    Paste the export into the cleaner

    Open the AWS CloudWatch Cleaner and paste the file. The tool formats the JSON so each event sits on its own indented block instead of one continuous line.

  3. 3

    Read the timeline in order

    Events are ordered by timestamp. Follow them from the first error forward: cold starts, then the request that failed, then any retries. A single failure usually repeats across retries, so you only need the first occurrence.

  4. 4

    Pull out the error message

    Lambda stack traces live inside the message field as a multi-line string. Search for ERROR or the exception name, then copy that block into your ticket.

Ready to try it? Open the AWS CloudWatch Cleaner and paste your data.

AWS CloudWatch Cleaner