Documentation ¶
Index ¶
- type ProcessorGeoIP
- func (*ProcessorGeoIP) Description() string
- func (p *ProcessorGeoIP) Init(context ilogtail.Context) error
- func (p *ProcessorGeoIP) ProcessGeoIP(log *protocol.Log, val *string)
- func (p *ProcessorGeoIP) ProcessLog(log *protocol.Log)
- func (p *ProcessorGeoIP) ProcessLogs(logArray []*protocol.Log) []*protocol.Log
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProcessorGeoIP ¶
type ProcessorGeoIP struct { NoProvince bool NoCity bool NoCountry bool NoCountryCode bool NoCoordinate bool IPValueFlag bool NoKeyError bool NoMatchError bool KeepSource bool DBPath string SourceKey string Language string // contains filtered or unexported fields }
ProcessorGeoIP is a processor plugin to insert geographical information into log according to IP address specified by SourceKey. DBPath and related Language must be set because plugin does not contain any GeoIP database, the type of database should be mmdb. NoProvince/City/... are used to control the information granularity. The keys of geographical information will be prefixed with SourceKey, such as SourceKey_city_.
func (*ProcessorGeoIP) Description ¶
func (*ProcessorGeoIP) Description() string
func (*ProcessorGeoIP) Init ¶
func (p *ProcessorGeoIP) Init(context ilogtail.Context) error
Init called for init some system resources, like socket, mutex...
func (*ProcessorGeoIP) ProcessGeoIP ¶
func (p *ProcessorGeoIP) ProcessGeoIP(log *protocol.Log, val *string)
func (*ProcessorGeoIP) ProcessLog ¶
func (p *ProcessorGeoIP) ProcessLog(log *protocol.Log)
func (*ProcessorGeoIP) ProcessLogs ¶
func (p *ProcessorGeoIP) ProcessLogs(logArray []*protocol.Log) []*protocol.Log
Click to show internal directories.
Click to hide internal directories.