From 7ee5ef333cf2701bdbd291474b09b39abb3ca9d2 Mon Sep 17 00:00:00 2001 From: Shaunak Kashyap Date: Fri, 9 Feb 2018 15:18:37 -0800 Subject: [PATCH] Add fields to `.logstash`'s mapping in template (elastic/x-pack-elasticsearch#3872) * 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. * Making field name more explicit + adding multi field for better search Original commit: elastic/x-pack-elasticsearch@2df101f0b1bbc61f466613c0ee93524f01aa8a46 --- .../src/main/resources/logstash-index-template.json | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/plugin/core/src/main/resources/logstash-index-template.json b/plugin/core/src/main/resources/logstash-index-template.json index d62c8111ad0..1701276a879 100644 --- a/plugin/core/src/main/resources/logstash-index-template.json +++ b/plugin/core/src/main/resources/logstash-index-template.json @@ -33,6 +33,19 @@ "pipeline":{ "type":"text" }, + "pipeline_settings": { + "dynamic": false, + "type": "object" + }, + "pipeline_node_group_ids": { + "type": "keyword", + "fields": { + "searchable": { + "type": "text", + "analyzer": "simple" + } + } + }, "username":{ "type":"keyword" },