A middleware was added to log requests; however, the current log message format is not compatible with AWS CloudWatch Logs Insights.
To enable efficient querying, fields must be structured in a way that allows Logs Insights to extract them without needing to manually parse the message field.
What needs to be done:
- Remove the prefix from the log message so that @message starts directly with the JSON object.