Support validating a message with JSON schema #19386
Labels
domain: processing
Anything related to processing Vector's events (parsing, merging, reducing, etc.)
domain: vrl
Anything related to the Vector Remap Language
type: feature
A value-adding code addition that introduce new functionality.
A note for the community
Use Cases
We're using vector as a usage event pipeline. We currently define JSON schemas for each of our event types which we can use to validate events at write time. However, we've been considering using Vector as the entrypoint for some new event types (creating events from an S3 bucket which uses a different format). For this case, it would be nice to transform the data into the correct shape, and then have the pipeline validate it against a schema to ensure it's correct.
Attempted Solutions
So far we haven't attempted anything, but if first-class support is not added, I think I will attempt to write a tool that generates a VRL script to validate an event against a JSON schema.
Proposal
enrichment_tables
)For example, the global configuration may look like:
And the VRL function usage might look like:
References
No response
Version
No response
The text was updated successfully, but these errors were encountered: