Skip to content

Latest commit

 

History

History
executable file
·
25 lines (18 loc) · 524 Bytes

README.md

File metadata and controls

executable file
·
25 lines (18 loc) · 524 Bytes

JSON encode plugin

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\"}"}.

Config params

field cfg.FieldSelector required

The event field to encode. Must be a string.



Generated using insane-doc