From dfaf520347ec10bdf96493f46ff2a475ed46759f Mon Sep 17 00:00:00 2001 From: simitt Date: Mon, 14 Aug 2017 17:15:44 +0200 Subject: [PATCH] Set value 'dynamic' for groups. --- libbeat/template/fields.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libbeat/template/fields.go b/libbeat/template/fields.go index 1242607dbe7d..ae08718036aa 100644 --- a/libbeat/template/fields.go +++ b/libbeat/template/fields.go @@ -50,9 +50,11 @@ func (f Fields) process(path string, esVersion common.Version) common.MapStr { } else { newPath = path + "." + field.Name } - mapping = common.MapStr{ - "properties": field.Fields.process(newPath, esVersion), + mapping = common.MapStr{} + if field.Dynamic.value != nil { + mapping["dynamic"] = field.Dynamic.value } + mapping["properties"] = field.Fields.process(newPath, esVersion) default: mapping = field.other() }