Date convert plugin

February 20, 2025 ยท View on GitHub

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