Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 875 Bytes

README.md

File metadata and controls

28 lines (20 loc) · 875 Bytes

logstash-filter-ipip

Logstash IP Geo info lookup filter plugin for IPDB format database which released by IPIP.net

Tested on logstash ver 7.13.2

how to configure

filter {
    ipip {
        source => "message"
        database => "/path/to/mydata4vipweek2.ipdb"
        target => "geoip" # default is ipip
        language => "CN"
        cache_size => 5000 # default is 10000
        tag_on_failure => ["_YOUR_LOOKUP_FAIL_TAG"] # default is ["_ipip_lookup_failure"]
    }
}

how to use

Logstash support --path.plugins flag to directly load a plugin source code, more detail please vist working-with-plugins

note

The cache_size setting is global. All filter instances of this filter share the same cache. The last declared value in config file will win.