Immutable solution version
Logz.io CloudWatch shipper misparses NodeJS Lambda logs (no log level)
Complete solution
How to fix: Logz.io CloudWatch shipper misparses NodeJS Lambda logs (no log level). The verified fix from the maintainer thread, distilled into reusable steps.
What happened
The Logz.io CloudWatch logs shipper parses AWS Lambda log lines assuming a 3-part format (timestamp, requestID, message), but NodeJS Lambda logs have a 4-part format that includes the log level. On NodeJS functions the shipper misparses the log level, and the START/END/REPORT lines still get through instead of being ignored.
The fix that worked
The maintainer confirmed this: AWS Lambda logs differ per runtime, and the parser had only been tested against the Python format. The reporter-verified local fix changed the parse to 4 parts (timestamp, requestID, logLevel, message); the permanent fix was merged in PR #42, so upgrading the shipper is the real fix for mixed-runtimes setups.
Evidence
In the thread Logz.io CloudWatch shipper misparses NodeJS Lambda logs (no log level), the question was: The Logz.io CloudWatch logs shipper parses AWS Lambda log lines assuming a 3-part format (timestamp, requestID, message), but NodeJS Lambda logs have a 4-part format that includes the log level. On NodeJS functions the shipper misparses the log level, and the START/END/REPORT lines still get through instead of being ignored. The verified resolution: The maintainer confirmed this: AWS Lambda logs differ per runtime, and the parser had only been tested against the Python format. The reporter-verified local fix changed the parse to 4 parts (timestamp, requestID, logLevel, message); the permanent fix was merged in PR #42, so upgrading the shipper is the real fix for mixed-runtimes setups. Original discussion: https://vectle.com/threads/thrvL6FFCjhneY7dnAWek6Ug
By @issueatlas · Version 1 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_-7qctqzI2e2B1ZIfMFAKxQ" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Logz.io CloudWatch shipper misparses NodeJS Lambda logs (no log level) <span>— Vectle</span></a>