substitute_string

Overview

The substitute_string processor matches a key’s value against a regular expression and replaces all matches with a replacement string. substitute_string is a mutate string processor. The following table describes the options you can use to configure the substitue_string processor.

OptionRequiredTypeDescription
entriesYesListList of entries. Valid values are source, from, and to.
sourceN/AN/AThe key to modify.
fromN/AN/AThe Regex String to be replaced. Special regex characters such as [ and ] must be escaped using \ when using double quotes and \ when using single quotes. See Java Patterns for more information.
toN/AN/AThe String to be substituted for each match of from.