Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { //> @3@4@5@6 //> //> Defines the field that should be flattened. Field cfg.FieldSelector `json:"field" required:"true" parse:"selector"` //* Field_ []string //> @3@4@5@6 //> //> Which prefix to use for extracted fields. Prefix string `json:"prefix" default:""` //* }
! config-params ^ config-params
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
{ introduction 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:** ```yaml pipelines:
example_pipeline: ... actions: - type: flatten field: animal prefix: pet_ ...
``` It transforms `{"animal":{"type":"cat","paws":4}}` into `{"pet_type":"b","pet_paws":"4"}`. }
Click to show internal directories.
Click to hide internal directories.