Configuration parameters
Use the parameters in this section to configure the . The Telemetry Pipeline web interface uses the items in the Name column to describe these parameters. Pipeline configuration files use the items in the Key column as YAML keys.| Name | Key | Description | Default |
|---|---|---|---|
| Key | key | Required. The key whose value contains the string to replace. | none |
| Regex | regex | Required. The regular expression that determines which values to replace. You can use capture groups to specify more than one value. | none |
| Match case checkbox | matchCase | Indicates whether the regular expression is case-sensitive. | Not selected |
| Maximum number of substitutions | submax | The maximum number of substitutions that this rule will perform within a given record. | none |
| Replacement value | replacement | Required. The regular expression substitution pattern to replace the values specified by Regex. You can use the % character to use capture groups in your substitution pattern. | none |
| Regex engine | regexEngine | Required. The engine to parse your regular expression. Accepted values: GNU, Oniguruma, PCRE2, POSIX, TRE. | PCRE2 |
| Comment | comment | A custom note or description of the rule’s function. This text is displayed next to the rule’s name in the Actions list in the processing rules interface. | none |
Examples
Using the search/replace value rule lets you modify and overwrite your telemetry data.Basic substitution
For example, given these sample logs:action, the Regex value purchase,
and the Replacement value checkout returns the following result:
purchase within the value of the action key,
then replaced any matching strings with the value checkout.
Capture groups
You can also use capture groups for more complex replacements. For example, given these sample logs:event, the Regex value
Sign-on detected from user '(.*)' to server (.*)., and the Replacement value
login: %1 at %2 returns the following result:
event key, then replaced the value of event with a shorter message that
still retained the names contained in the original message.