Documentation ¶
Index ¶
Constants ¶
View Source
const ModuleName = "lookuptable"
ModuleName is the name used in config file
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FilterConfig ¶
type FilterConfig struct { config.FilterConfig // The field containing the user agent string. Source string `json:"source"` // The name of the field to assign user agent data into. // If not specified user agent data will be stored in the root of the event. Target string `json:"target"` // LookupFile contains one key-value mapping per line LookupFile string `json:"lookup_file"` // UA parsing is surprisingly expensive. // We can optimize it by adding a cache CacheSize int `json:"cache_size"` // 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.