Skip to content

Latest commit

 

History

History
executable file
·
32 lines (18 loc) · 1013 Bytes

File metadata and controls

executable file
·
32 lines (18 loc) · 1013 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. Can be specified as a datetime layout in Go time.Parse format or by alias. List of available datetime format aliases can be found here.


target_format string default=unixtime

Date format to convert to. Can be specified as a datetime layout in Go time.Parse format or by alias. List of available datetime format aliases can be found here.


remove_on_fail bool default=false

Remove field if conversion fails.



Generated using insane-doc