Fielddataは[service.address]のfielddata =真のデフォルトの設定でテキストフィールドで無効になっています

二つのフィールド:

PUT metricbeat-7.3.0/_mapping
{
  "properties": {
    "service": {
      "properties": {
        "address": {
          "type": "text",
          "fielddata": true,
          "fields": {
            "keyword": {
              "type": "keyword",
              "ignore_above": 256
            }
          }
        }
      }
    }
  }
}

三つのフィールド:

PUT metricbeat-7.3.0/_mapping
{
  "properties": {
    "kafka": {
      "properties": {
        "topic": {
            "properties": {
                "name":{
                    "type": "text",
                    "fielddata": true,
                    "fields": {
                    "keyword": {
                        "type": "keyword",
                        "ignore_above": 256
                        }
                    }
                }
            }

        }
      }
    }
  }
}

四つのフィールド:

PUT metricbeat-7.3.0/_mapping
{
    "properties": {
        "kafka": { 
            "properties": {
                "consumergroup": {
                    "properties": {
                        "client":{
                            "properties": {
                                "id": {
                                    "type": "text",
                                    "fielddata": true,
                                    "fields": {
                                        "keyword": {
                                            "type": "keyword",
                                            "ignore_above": 256
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}

おすすめ

転載: www.cnblogs.com/sanduzxcvbnm/p/12172935.html