It replaces field with its JSON string representation.
Example:
pipelines:
example_pipeline:
...
actions:
- type: json_encode
field: server
...
It transforms {"server":{"os":"linux","arch":"amd64"}}
into {"server":"{\"os\":\"linux\",\"arch\":\"amd64\"}"}
.
field
cfg.FieldSelector
required
The event field to encode. Must be a string.
Generated using insane-doc