No Compatible Fields: types: geo_point

I am following practices below;

I am using both Elasticsearch & Kibana version 6.2.1

I followed instructions as below;

But, I am getting following error:

No Compatible Fields: The "logstash*" index pattern does not contain any of the following field types: geo_point

Am I missing something here? How can I resolve this error?

What gives:

GET logstash-*/_mapping

Hi @dadoonet

Here is the output: https://gist.github.com/reyou/40ab77b390f9d7e16bf6d27bb180654f

Did you look at it?

          "geo": {
            "properties": {
              "coordinates": {
                "properties": {
                  "lat": {
                    "type": "float"
                  },
                  "lon": {
                    "type": "float"
                  }
                }
              },

We can clearly see that your mapping is wrong here.

I see. I don't know what would went wrong while I initially PUT mappings.
So should I delete and re-create?

I deleted my logstash* indexes. Then first created mapping, and run following command;

Invoke-RestMethod "http://localhost:9200/_bulk?pretty" -Method Post -ContentType 'application/x-ndjson' -InFile "./sampleDatas/logs.jsonl"

And here is my GET logstash-*/_mapping again:

And when I try to create Coordinate map by following example, I am still getting same error.
https://www.elastic.co/guide/en/kibana/6.3/_coordinate_map.html

Is there anything I can try?

What are inputting when you create the mapping? For geo_point to work you need something such as

PUT my_index
{
  "mappings": {
    "_doc": {
      "properties": {
        "location": {
          "type": "geo_point"
        }
      }
    }
  }
}

OK After I delete/create index and restart kibana, it is picking up the value. Thanks!

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