vectordotdev / vrl

Vector Remap Language
Mozilla Public License 2.0
136 stars 68 forks source link

chore(parse_groks): expose internal errors #1113

Closed neuronull closed 1 week ago

neuronull commented 2 weeks ago

Summary

parse_grok follows the Datadog Log's Grok algorithm's behavior where errors in applying filters are non fatal. This change surfaces those filter errors to the caller, and differentiates between fatal and non fatal, as outlined by the Datadog Log's Grok algorithm, allowing the caller to decide whether to align with that or differ.

The stdlib parse_groks was unmodified, as such this is not a change to user facing behavior. If we decide to change that, we can do it in a follow up change.

Change Type

Is this a breaking change?

How did you test this PR?

Added/corrected unit tests

Does this PR include user facing changes?

Checklist

References