This version of the OpenSearch documentation is no longer maintained. For the latest version, see the current documentation. For information about OpenSearch version maintenance, see Release Schedule and Maintenance Policy.
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
|entries||Yes||List||List of entries. Valid values are |
|source||N/A||N/A||The key to modify.|
|from||N/A||N/A||The Regex String to be replaced. Special regex characters such as |
|to||N/A||N/A||The String to be substituted for each match of |