[−][src]Function aw_transform::filter_keyvals_regex
pub fn filter_keyvals_regex(
events: Vec<Event>,
key: &str,
regex: &Regex
) -> Vec<Event>
Drops events not matching the regex on the value for a specified key Will only match if the value is a string
Example
ⓘThis example is not tested
key: a regex: "[A-Z]+" input: [a:"HELLO"][a:"hello"][a:3][b:"HELLO"] output: [a:"HELLO"]