Hey guys,
I was wondering if I can see location of IP address when insert an IP address from text file via logstash with filter for geoip in it.
I was trying it with Apache log line sample from GeoIP in the Elastic Stack tutorial. I created a new index
PUT my_index
{
"mappings": {
"properties": {
"location": {
"type": "geo_point"
}
}
}
}
And then changed filter in logstash config file for:
filter {
grok { match => { "message" => "%{COMBINEDAPACHELOG}" } }
geoip { source => "clientip" }
}
The output I see in Kibana:
Time geoip.ip geoip.timezone geoip.location.lat geoip.location.lon geoip.continent_code
Oct 17, 2019 @ 11:41:23.231 162.156.141.3 Europe/London 51.496 -0.122 EU
When I try to make a new visualisation with Coordinate Map I have there geopoint location but no points in map are shown.
In Index Pattern settings I don't have field clientip as geo_point but String.
Thanks for any help!