mirror of https://github.com/cowrie/cowrie.git
add ASN numbers to logstash output
This commit is contained in:
parent
428c27d3c3
commit
53ba93acd0
|
@ -31,6 +31,12 @@ filter {
|
||||||
add_field => [ "[geoip][coordinates]", "%{[geoip][longitude]}" ]
|
add_field => [ "[geoip][coordinates]", "%{[geoip][longitude]}" ]
|
||||||
add_field => [ "[geoip][coordinates]", "%{[geoip][latitude]}" ]
|
add_field => [ "[geoip][coordinates]", "%{[geoip][latitude]}" ]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
geoip {
|
||||||
|
source => "src_ip"
|
||||||
|
database => "/opt/logstash/vendor/geoip/GeoIPASNum.dat"
|
||||||
|
}
|
||||||
|
|
||||||
mutate {
|
mutate {
|
||||||
convert => [ "[geoip][coordinates]", "float" ]
|
convert => [ "[geoip][coordinates]", "float" ]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue