Skip to content

Commit

Permalink
Remove the _all settings from the 5.x template (5.6 branch)
Browse files Browse the repository at this point in the history
Part of elastic#4901. The removal of the `norms: false` costs one byte per
doc, but makes the upgrade experience a bit more smooth.
  • Loading branch information
Tudor Golubenco committed Aug 18, 2017
1 parent b95280e commit 269b92a
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 22 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ https://github.com/elastic/beats/compare/v5.4.1...master[Check the HEAD diff]

*Affecting all Beats*

- The _all.norms setting in the Elasticsearch template is no longer disabled.
This increases the storage size with one byte per document, but allows for a
better upgrade experience to 6.0. {issue}4901[4901]

*Filebeat*

*Heartbeat*
Expand Down
3 changes: 0 additions & 3 deletions filebeat/filebeat.template.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
{
"mappings": {
"_default_": {
"_all": {
"norms": false
},
"_meta": {
"version": "5.6.0"
},
Expand Down
3 changes: 0 additions & 3 deletions heartbeat/heartbeat.template.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
{
"mappings": {
"_default_": {
"_all": {
"norms": false
},
"_meta": {
"version": "5.6.0"
},
Expand Down
7 changes: 0 additions & 7 deletions libbeat/scripts/generate_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,6 @@ def fields_to_es_template(args, input, output, index, version):
# limit shouldn't be that bad.
template["settings"]["index.mapping.total_fields.limit"] = 10000

if not args.es6x:
# should be done only for es5x. For es6x, any "_all" setting results
# in an error.
template["mappings"]["_default_"]["_all"] = {
"norms": False
}

properties = {}
dynamic_templates = []

Expand Down
3 changes: 0 additions & 3 deletions metricbeat/metricbeat.template.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
{
"mappings": {
"_default_": {
"_all": {
"norms": false
},
"_meta": {
"version": "5.6.0"
},
Expand Down
3 changes: 0 additions & 3 deletions packetbeat/packetbeat.template.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
{
"mappings": {
"_default_": {
"_all": {
"norms": false
},
"_meta": {
"version": "5.6.0"
},
Expand Down
3 changes: 0 additions & 3 deletions winlogbeat/winlogbeat.template.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
{
"mappings": {
"_default_": {
"_all": {
"norms": false
},
"_meta": {
"version": "5.6.0"
},
Expand Down

0 comments on commit 269b92a

Please sign in to comment.