I have a problem, I have two IPs one source and one destination, for the source IP Logstash automatically creates a field called "geoip.location" that contains the latitude and longitude of the specific IP, but for the destination IP it does not create any field like the "geoip.location" of the source and I do not know how to perform for example a Point to Point in Kibana without a field with the geolocation of the destination IP.
Logstash code:
input {
file {
path => "/var/log/snort/alert_fast.txt"
start_position => "beginning"
}
}
filter {
dissect { mapping => { "message" => '%{ts} [%{trash}] [%{fd1}] "%{alert}" [%{fd2}} %{ip_ori}:%{port_ori} %{fd3} %{ip_dest}:%{port_dest}' } }
geoip { source => "ip_ori" }
geoip { source => "ip_dest" target => "dest" }
}
output {
elasticsearch {
hosts => "http://localhost:9200"
index => "logstash-snort3a"
}
stdout { codec => rubydebug }
}