Skip to content

Commit

Permalink
Disable _all.norms also for ES 5.X
Browse files Browse the repository at this point in the history
This is the behavior for the whole Beats 5.X branch but after switching
to `template.go` in master we missed ES 5.X here. This change takes it
back while keeping 6.X compatible.

I already disabled `_all.norms` for ES 6.X in elastic#3368
  • Loading branch information
exekias committed Apr 19, 2017
1 parent d4222cc commit 1d8c622
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libbeat/template/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ func (t *Template) generate(properties common.MapStr, dynamicTemplates []common.
"template": t.GetName() + "-*",
}

if t.esVersion.IsMajor(2) {
if t.esVersion.IsMajor(2) || t.esVersion.IsMajor(5) {
basicStructure.Put("mappings._default_._all.norms.enabled", false)
} else {
// Metricbeat exceeds the default of 1000 fields
Expand Down

0 comments on commit 1d8c622

Please sign in to comment.