Skip to content

Latest commit

 

History

History
executable file
·
30 lines (16 loc) · 777 Bytes

README.md

File metadata and controls

executable file
·
30 lines (16 loc) · 777 Bytes

Date convert plugin

It converts field date/time data to different format.

Config params

field cfg.FieldSelector default=time

The event field name which contains date information.


source_formats []string default=rfc3339nano,rfc3339

List of date formats to parse a field. Available list items should be one of ansic|unixdate|rubydate|rfc822|rfc822z|rfc850|rfc1123|rfc1123z|rfc3339|rfc3339nano|kitchen|stamp|stampmilli|stampmicro|stampnano|unixtime|nginx_errorlog.


target_format string default=unixtime

Date format to convert to.


remove_on_fail bool default=false

Remove field if conversion fails.



Generated using insane-doc