Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultTarget = "@timestamp"
DefaultTarget default event field to store date as
View Source
const ErrorTag = "gogstash_filter_date_error"
ErrorTag tag added to event when process module failed
View Source
const ModuleName = "date"
ModuleName is the name used in config file
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FilterConfig ¶
type FilterConfig struct { config.FilterConfig Format []string `json:"format"` // date parse format Source string `json:"source"` // source message field name Joda bool `json:"joda"` // whether using joda time format Target string `json:"target"` // target field where date should be stored ComputeYearIfMissing bool `json:"compute_year_if_missing"` // try to find missing year; dont support logs older than 1 year // contains filtered or unexported fields }
FilterConfig holds the configuration json fields and internal objects
func DefaultFilterConfig ¶
func DefaultFilterConfig() FilterConfig
DefaultFilterConfig returns an FilterConfig struct with default values
Click to show internal directories.
Click to hide internal directories.