Good morning,
I've come back to test Elasticsearch and its works like i like but the option of geoip doesnt work.
Logstash filter file
if [type]=="sonicwall"{
kv {
exclude_keys => [ "c", "id", "m", "n", "pri" ]
}
grok {
match => [ "src", "%{IP:srcip}:%{NUMBER:srcPort}:(?<srcInterfaz>X[0-9][-]V[0-9]{1,3}|X[0-9])" ]
}
grok {
match => [ "dst", "%{IP:dstip}:%{NUMBER:dstPort}:(?<dstInterfaz>X[0-9][-]V[0-9]{1,3}|X[0-9])" ]
}
}
geoip {
source => "dstip"
add_tag => [ "DSTgeoip" ]
add_field => [ "[DSTgeoip][coordinates]", "%{[geoip][longitude]}"]
add_field => [ "[DSTgeoip][coordinates]", "%{[geoip][latitude]}" ]
}
Template
"geoip" : {
"dynamic": true,
"properties" : {
"ip": { "type": "ip" },
"location" : { "type" : "geo_point" },
"latitude" : { "type" : "half_float" },
"longitude" : { "type" : "half_float" }
}
}
Going to the kibana index
compare with the tutorial in the tutorial coordinates appears between and in my model no.
any idea what im doing wrong?