{
  "template": {
    "mappings": {
      "dynamic_templates": [
        {
          "match_ip": {
            "match_mapping_type": "string",
            "match": "ip",
            "mapping": {
              "type": "ip"
            }
          }
        },
        {
          "match_message": {
            "match_mapping_type": "string",
            "match": "message",
            "mapping": {
              "type": "match_only_text"
            }
          }
        },
        {
          "strings_as_keyword": {
            "mapping": {
              "ignore_above": 1024,
              "type": "keyword"
            },
            "match_mapping_type": "string"
          }
        }
      ],
      "date_detection": false,
      "properties": {
        "@timestamp": {
          "type": "date"
        },
        "data_stream": {
          "properties": {
            "dataset": {
              "type": "constant_keyword"
            },
            "namespace": {
              "type": "constant_keyword"
            }
          }
        },
        "ecs": {
          "properties": {
            "version": {
              "ignore_above": 1024,
              "type": "keyword"
            }
          }
        },
        "host": {
          "type": "object"
        }
      }
    }
  },
  "_meta": {
    "description": "general mapping conventions for data streams",
    "managed": true
  },
  "version": ${xpack.stack.template.version},
  "deprecated": ${xpack.stack.template.deprecated}
}
