File name adding plugin

December 21, 2022 ยท View on GitHub

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