D
D
demudrol2016-09-22 17:35:55
elasticsearch
demudrol, 2016-09-22 17:35:55

Why might request not work in Elasticsearch?

Good afternoon!
Faced such a problem that when uploading json to the server, updates are not applied.
Elasticsearch works in three nodes: Worker, Master, Client.
For example, I run

curl -XPUT 'http://localhost:9200/_template/filebeat?pretty' [email protected]

I get:
{
  "acknowledged" : true
}

The json has the following text:
{
  "mappings": {
    "_default_": {
      "_all": {
        "enabled": true,
        "norms": {
          "enabled": false
        }
      },
      "dynamic_templates": [
        {
          "template1": {
            "mapping": {
              "doc_values": true,
              "ignore_above": 1024,
              "index": "not_analyzed",
              "type": "{dynamic_type}"
            },
            "match": "*"
          }
        }
      ],
      "properties": {
        "@timestamp": {
          "type": "date"
        },
        "message": {
          "type": "string",
          "index": "analyzed"
        },
        "offset": {
          "type": "long",
          "doc_values": "true"
        },
        "geoip"  : {
          "type" : "object",
          "dynamic": true,
          "properties" : {
            "location" : { "type" : "geo_point" }
          }
        }
      }
    }
  },
  "settings": {
    "index.refresh_interval": "5s"
  },
  "template": "filebeat-*"
}

If I understand correctly, then the geo_point.location field should become the geo_point type, but this does not happen in Kibana, as before, geoip.location with the number type.
2f1d08f2ab43421197e4ddfa6bd7aeac.png
Before I transferred ES to the cluster, everything changed normally. Now here's the problem.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question