ES Templates push

{
  "order": 0,
  "template": "connector-connection*",
  "settings": {
    "index": {
      "routing": {
        "allocation": {
          "total_shards_per_node": "5"
        }
      },
      "refresh_interval": "300s",
      "number_of_shards": "36",
      "translog": {
        "flush_threshold_size": "6GB",
        "sync_interval": "60s",
        "durability": "async"
      },
      "merge": {
        "scheduler": {
          "max_thread_count": "1"
        }
      },
      "store": {
        "throttle": {
          "max_bytes_per_sec": "200mb"
        }
      },
      "unassigned": {
        "node_left": {
          "delayed_timeout": "60m"
        }
      },
      "number_of_replicas": "1"
    }
  },
  "mappings": {
    "type_push": {
      "properties": {
        "deviceId": {
          "type": "keyword"
        },
        "eventType": {
          "type": "keyword"
        },
        "connectionTime": {
          "type": "date",
          "format": "epoch_millis"
        },
        "connectorIp": {
          "type": "ip"
        },
        "clientIndex": {
          "type": "keyword"
        },
        "mcsVersion": {
          "type": "keyword"
        },
        "networkType": {
          "type": "keyword"
        }
      }
    }
  },
  "aliases": {}
}
原文地址:https://www.cnblogs.com/lwhctv/p/11125355.html