Skip to content
This repository has been archived by the owner on Dec 15, 2020. It is now read-only.

Rejecting mapping update #38

Open
spanthetree opened this issue Jun 6, 2020 · 1 comment
Open

Rejecting mapping update #38

spanthetree opened this issue Jun 6, 2020 · 1 comment

Comments

@spanthetree
Copy link

spanthetree commented Jun 6, 2020

ES ver.7.5.0

2020/06/06 14:19:19.744526 client.go:447: WARN Can not index event (status=400): {"type":"illegal_argument_exception","reason":"Rejecting mapping update to [pingbeat-2020.06.06] as the final mapping would have more than 1 type: [_doc, doc]"}
@spanthetree spanthetree changed the title Is this project alive? Rejecting mapping update Jun 6, 2020
@spanthetree
Copy link
Author

spanthetree commented Jun 6, 2020

I've got this working. Here is a working template for 7.5.0

You can put this directly in the kibana console using the following api call:
PUT _template/pingbeat?include_type_name=true
followed by the below template:

{
  "order" : 0,
  "version" : 30502,
  "index_patterns" : [
    "pingbeat-*"
  ],
  "settings" : {
    "index" : {
      "codec" : "best_compression",
      "mapping" : {
        "total_fields" : {
          "limit" : "5000"
        }
      }
    }
  },
  "mappings" : {
    "_doc": {
      "numeric_detection" : true,
      "properties" : {
        "node" : {
          "dynamic" : true,
          "type" : "object",
          "properties" : {
            "hostname" : {
              "type" : "keyword"
            },
            "ipaddr" : {
              "type" : "ip"
            }
          }
        },
        "@timestamp" : {
          "type" : "date"
        },
        "@version" : {
          "type" : "keyword"
        },
        "event" : {
          "dynamic" : true,
          "type" : "object",
          "properties" : {
            "logstash_host" : {
              "type" : "keyword"
            },
            "host" : {
              "type" : "keyword"
            },
            "type" : {
              "type" : "keyword"
            }
          }
        },
        "beat": {
          "properties": {
            "hostname": {
              "ignore_above": 1024,
              "type": "keyword"
            },
            "name": {
              "ignore_above": 1024,
              "type": "keyword"
            },
            "version": {
              "ignore_above": 1024,
              "type": "keyword"
            }
          }
        },
        "fields": {
          "properties": {
            
          }
        },
        "geoip": {
          "properties": {
            "city_name": {
              "ignore_above": 1024,
              "type": "keyword"
            },
            "continent_name": {
              "ignore_above": 1024,
              "type": "keyword"
            },
            "country_iso_code": {
              "ignore_above": 1024,
              "type": "keyword"
            },
            "location": {
              "type": "geo_point"
            },
            "region_name": {
              "ignore_above": 1024,
              "type": "keyword"
            }
          }
        },
        "meta": {
          "properties": {
            "cloud": {
              "properties": {
                "availability_zone": {
                  "ignore_above": 1024,
                  "type": "keyword"
                },
                "instance_id": {
                  "ignore_above": 1024,
                  "type": "keyword"
                },
                "machine_type": {
                  "ignore_above": 1024,
                  "type": "keyword"
                },
                "project_id": {
                  "ignore_above": 1024,
                  "type": "keyword"
                },
                "provider": {
                  "ignore_above": 1024,
                  "type": "keyword"
                },
                "region": {
                  "ignore_above": 1024,
                  "type": "keyword"
                }
              }
            }
          }
        },
        "rtt": {
          "type": "double"
        },
        "target": {
          "properties": {
            "addr": {
              "type": "ip"
            },
            "description": {
              "norms": false,
              "type": "text"
            },
            "name": {
              "ignore_above": 1024,
              "type": "keyword"
            }
          }
        },
        "tags": {
          "type": "keyword"
        }
      }
    }
  },
  "aliases" : { }
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant