Skip to content

Commit

Permalink
Set value 'dynamic' for groups. (#4894)
Browse files Browse the repository at this point in the history
  • Loading branch information
simitt authored and ruflin committed Aug 14, 2017
1 parent d1263b9 commit a7103d1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions libbeat/template/fields.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down

0 comments on commit a7103d1

Please sign in to comment.