GeoIP data without geo_point

I'm not able to create geopoint data With Elastic Stack 6.8.6. Geolocation works, but without geo_point. That means, I cannot use it in Kibana.

This is my Elastic template part:

"geoip"  : {
    "dynamic": true,
    "properties" : {
        "ip": { "type": "ip" },
        "location" : { "type" : "geo_point" },
        "latitude" : { "type" : "half_float" },
        "longitude" : { "type" : "half_float" }

Based on the documentation, geo_point should be in geoip.location. But in Elastic I see fields and geoip.location.lon. Here is my part of the document:

"geoip" : {
    "country_name" : "United States",
    "continent_code" : "NA",
    "ip" : "40.77.188.XXX",
    "country_code2" : "US",
    "country_code3" : "US",
    "location" : {
        "lat" : 37.751,
        "lon" : -97.822
    "longitude" : -97.822,
    "latitude" : 37.751

The only magic in logstash is:

geoip {
    source => "source_ip"

Any sugestion what can be wrong in my config?

The mapping looks good to me.

If you can't make it work, could you provide a full recreation script as described in About the Elasticsearch category. It will help to better understand what you are doing. Please, try to keep the example as simple as possible.

A full reproduction script will help readers to understand, reproduce and if needed fix your problem. It will also most likely help to get a faster answer.

There is no script at all. Just receiving logs from Filebeats and Logstash is parsing them. After that I get a field named source_ip, which contains IP (IPv6 or IPv4), I do get GeoIP data with this field:

geoip {
    source => "source_ip"

and send it into Elastic:

output {
    elasticsearch {
        hosts => ["localhost:9200"]
        index => "webserver-%{[@metadata][beat]}-%{+YYYY.MM.dd.HH}"
        ilm_enabled => true

This is what I see in Logstash log:

output received {
        "location"=>{"lon"=>10.7487, "lat"=>59.905},
        "region_name"=>"Oslo County"

It looks like an index conflict of new indices and old ones.

I closed all webserver indices, refreshed index pattern with only new ones and I have geo_point back, in Kibana in geoip.location field.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.