{
  "index_patterns" : [ ".logstash" ],
  "settings": {
    "index": {
      "number_of_shards": 1,
      "auto_expand_replicas": "0-1",
      "codec": "best_compression"
    }
  },
  "mappings" : {
    "doc" : {
      "_meta": {
        "logstash-version": "${logstash.template.version}"
      },
      "dynamic": "strict",
      "properties":{
        "description":{
          "type":"text"
        },
        "last_modified":{
          "type":"date"
        },
        "pipeline_metadata":{
          "properties":{
            "version":{
              "type":"short"
            },
            "type":{
              "type":"keyword"
            }
          }
        },
        "pipeline":{
          "type":"text"
        },
        "username":{
          "type":"keyword"
        },
        "metadata":{
          "type":"object",
          "dynamic":false
        }
      }
    }
  }
}

{
  "index_patterns" : [ ".logstash" ],
  "settings": {
    "index": {
      "number_of_shards": 1,
      "auto_expand_replicas": "0-1",
      "codec": "best_compression"
    }
  },
  "mappings" : {
    "doc" : {
      "_meta": {
        "logstash-version": "${logstash.template.version}"
      },
      "dynamic": "strict",
      "properties":{
        "description":{
          "type":"text"
        },
        "last_modified":{
          "type":"date"
        },
        "pipeline_metadata":{
          "properties":{
            "version":{
              "type":"short"
            },
            "type":{
              "type":"keyword"
            }
          }
        },
        "pipeline":{
          "type":"text"
        },
        "pipeline_settings": {
          "dynamic": false,
          "type": "object"
        },
        "pipeline_node_groups": {
          "type": "text"
        },
        "username":{
          "type":"keyword"
        },
        "metadata":{
          "type":"object",
          "dynamic":false
        }
      }
    }
  }
}

Add fields to `.logstash`'s mapping in template
Add fields to `.logstash`'s mapping in template

This "makes room" in the index for pipeline settings and node groups. Due to this change, users will be able to specify settings and node groups for a pipeline via the Centralized Config Management UI in Kibana. Logstash will only retrieve pipelines associated with the node group specified via the `xpack.management.group.id` setting in `logstash.yml`. For the retrieved pipelines, Logstash will apply any (optionally) specified pipeline settings before (re)loading the pipelines.

relates elastic/x-pack-elasticsearch#3872

Original commit: elastic/x-pack-elasticsearch@e2430454c795aecb305a914a4ebebf8d203645a9
