Back to Vector

RegexSet support to `regex` transform

website/content/en/highlights/2020-05-13-add-regexset-support-to-regex.md

0.55.0844 B
Original Source

Contributor Mattias Endler (@mre) taught the regex_parser transform how to handle multiple regexes at a time efficiently!

Get Started

Make the following changes in your vector.toml file:

In order to avoid a deprecation warning you should update any regex_parser components to use the new syntax:

diff
 [transforms.example]
   type = "regex_parser"
-  regex = "..."
+  patterns = [
+    "...",
+    # Any new regexes you might want!
+  ]

You should also review your pipelines for instances where you have a regex_parser -> [... ->] regex_parser step, you may be able to collapse these now and shave a few a nanoseconds off your events. 😉