Skip to content

Commit

Permalink
Set 10000 field limit also for ES v5 (#4079)
Browse files Browse the repository at this point in the history
This was accidentially removed in #4055
  • Loading branch information
ruflin authored and monicasarbu committed Apr 24, 2017
1 parent 38e04b4 commit fafe088
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libbeat/template/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,9 @@ func (t *Template) generate(properties common.MapStr, dynamicTemplates []common.

if t.esVersion.IsMajor(2) || t.esVersion.IsMajor(5) {
basicStructure.Put("mappings._default_._all.norms.enabled", false)
} else {
}

if t.esVersion.major >= 5 {
// Metricbeat exceeds the default of 1000 fields
basicStructure.Put("settings.index.mapping.total_fields.limit", defaultTotalFieldsLimit)
}
Expand Down

0 comments on commit fafe088

Please sign in to comment.