You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `strip_ansi_escape_codes` operator removes ANSI escape sequences (such as color codes) from a string.
4
+
5
+
### Configuration Fields
6
+
7
+
| Field | Default | Description |
8
+
| --- | --- | --- |
9
+
|`id`|`strip_ansi_escape_codes`| A unique identifier for the operator. |
10
+
|`output`| Next in pipeline | The connected operator(s) that will receive all outbound entries. |
11
+
|`field`| required | The [field](../types/field.md) to strip. Must be a string. |
12
+
|`on_error`|`send`| The behavior of the operator if it encounters an error. See [on_error](../types/on_error.md). |
13
+
|`if`|| An [expression](../types/expression.md) that, when set, will be evaluated to determine whether this operator should be used for the given entry. This allows you to do easy conditional parsing without branching logic with routers. |
14
+
15
+
Right now the operator only removes the ANSI "Control Sequence Introducer (CSI)" escape codes starting with `ESC [`.
0 commit comments