Kibana Maps not showing correct geo location

Kibana maps don't seem to be locating geopoint correctly.
Vietnam Singapore is shown in Africa and US in europe.
Please advise what could be wrong.

##############
Logstash config
##############
'geoip{

  •         source => "webUserID"*
    
  •         add_field => {*
    
  •                                 "[geoip][coordinates]" => "%{[geoip][latitude]},%{[geoip][latitude]}"*
    
  •                                 }*
    
  •       }*'
    

############
Index template mapping
############
'{ "properties": { "geoip": { "properties": { "coordinates": { "type": "geo_point" } } } } }'

###########
Index mapping
##########
'properties": {

  •    "geoip": {*
    
  •      "properties": {        *
    
  •        "coordinates": {*
    
  •          "type": "geo_point"*
    
  •        },*
    
  •        "ip": {*
    
  •          "type": "text",*
    
  •          "fields": {*
    
  •            "keyword": {*
    
  •              "type": "keyword",*
    
  •              "ignore_above": 256*
    
  •            }*
    
  •          }*
    
  •        },*
    
  •        "latitude": {*
    
  •          "type": "float"*
    
  •        },*
    
  •       "longitude": {*
    
  •          "type": "float"*
    
  •        }*
    
  •    },*
    
  •    "webUserID": {*
    
  •      "type": "text",*
    
  •      "fields": {*
    
  •        "keyword": {*
    
  •          "type": "keyword",*
    
  •          "ignore_above": 256*
    
  •        }*
    
  •      }*
    
  •    }*'

Looks like your logstash config is using latitude twice!

2 Likes

Thanks!!
Must have copy pasted for longitude and forgot the field name change.
Will correct

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