Skip to content

Latest commit

 

History

History
executable file
·
31 lines (22 loc) · 667 Bytes

README.md

File metadata and controls

executable file
·
31 lines (22 loc) · 667 Bytes

Flatten plugin

It extracts the object keys and adds them into the root with some prefix. If the provided field isn't an object, an event will be skipped.

Example:

pipelines:
  example_pipeline:
    ...
    actions:
    - type: flatten
      field: animal
      prefix: pet_
    ...

It transforms {"animal":{"type":"cat","paws":4}} into {"pet_type":"b","pet_paws":"4"}.

Config params

field cfg.FieldSelector required

Defines the field that should be flattened.


prefix string

Which prefix to use for extracted fields.



Generated using insane-doc