Skip to content
Discussion options

You must be logged in to vote

Use strict_mode: false to allow trailing fields:

.alb = parse_aws_alb_log!(.message, strict_mode: false)

This parses the supported fields into .alb and preserves the original .message. The new trailing fields are ignored by the parser, so they remain available only in the raw message.

Try it in the VRL Playground

Tested locally with Vector 0.59.0: a representative ALB line with the three appended fields fails in default strict mode and succeeds with strict_mode: false.

Please don't hesitate to followup in this thread if you have further questions.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by pront
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
provider:aws Anything `aws` service provider related domain:parsing Anything related to parsing within Vector domain:vrl Anything related to the Vector Remap Language
2 participants