find_enrichment_table_records wildcard match #22920
Labels
domain: enrichment_tables
Anything related to the Vector's enrichment tables
type: feature
A value-adding code addition that introduce new functionality.
Uh oh!
There was an error while loading. Please reload this page.
A note for the community
Use Cases
We would like to be able to configure the sample rate of log events based on certain tags like
location
,service
,level
, etc. but we would like to create blanket rules. To this end, we want to use an enrichment table that we can match our logs' attributes against. For example:Attempted Solutions
Currently, we are calling
find_enrichment_table_records
once per combination of wildcards, appending them to a list and then using our custom business logic to select the best one. This is very verbose and scales by big O of combination.Proposal
Enhance
find_enrichment_table_records
with an optional parameterwildcard
that when specified, a row's column equal to the user provided argument is automatically matched, but the rest of the providedcondition
must still be matched against the rest of the columns of the row.References
No response
Version
vector 0.46.1 (aarch64-apple-darwin 9a19e8a 2025-04-14 18:36:30.707862743)
The text was updated successfully, but these errors were encountered: