Documentation
¶
Index ¶
Constants ¶
View Source
const ErrorTag = "gogstash_filter_geoip2_error"
ErrorTag tag added to event when process geoip2 failed
View Source
const ModuleName = "geoip2"
ModuleName is the name used in config file
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FilterConfig ¶
type FilterConfig struct { config.FilterConfig DBPath string `json:"db_path" yaml:"db_path"` // geoip2 db file path, default: GeoLite2-City.mmdb IPField string `json:"ip_field" yaml:"ip_field"` // IP field to get geoip info Key string `json:"key" yaml:"key"` // geoip destination field name, default: geoip QuietFail bool `json:"quiet" yaml:"quiet"` // fail quietly SkipPrivate bool `json:"skip_private" yaml:"skip_private"` // skip private IP addresses PrivateNet []string `json:"private_net" yaml:"private_net"` // list of own defined private IP addresses FlatFormat bool `json:"flat_format" yaml:"flat_format"` // flat format CacheSize int `json:"cache_size" yaml:"cache_size"` // 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.