Query CloudWatch Logs to verify successful runs and identify failed or skipped chats.
Procedure
- Run the following CloudWatch Logs Insights query, replacing the time range as needed:
LOG_GROUP="/aws/lambda/claude-compliance-collector-process-chat" aws logs start-query \ --log-group-name $LOG_GROUP \ --start-time $(date -d '24 hours ago' +%s) \ --end-time $(date +%s) \ --query-string 'fields @timestamp, event, chat_id, chunks_sent, error_class | filter window_start = "2026-05-28T00:00:00+00:00" | stats count() as count by event'
