Fix Alloy logfmt decode errors for JSON logs #46
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feature/fix-alloy-logfmt-errors"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
stage.matchto conditionally apply logfmt parsing only to lines that don't start with{"failed to decode logfmt" component_path=/ component_id=loki.process.pods component=stage type=logfmt err="logfmt syntax error at pos 2 on line 1: unexpected '\"'"when JSON-formatted logs hit the logfmt parserDeployment and Testing
🤖 Generated with Claude Code
Use stage.match to conditionally apply logfmt parsing only to lines that don't start with '{'. This prevents error spam when JSON-formatted logs are passed to the logfmt parser. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>