Skip to content

Latest commit

 

History

History
executable file
·
18 lines (12 loc) · 568 Bytes

README.md

File metadata and controls

executable file
·
18 lines (12 loc) · 568 Bytes

File name adding plugin

It adds a field containing the file name to the event. It is only applicable for input plugins k8s and file.

Config params

field cfg.FieldSelector default=file_name

The event field to which put the file name. Must be a string.

Warn: it overrides fields if it contains non-object type on the path. For example: if field is info.level and input { "info": [{"userId":"12345"}] }, output will be: { "info": {"level": <level>} }



Generated using insane-doc