Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase the fields limit #3275

Merged
merged 1 commit into from
Jan 3, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ https://github.com/elastic/beats/compare/v5.1.1...master[Check the HEAD diff]
- Add support for passing list and dictionary settings via -E flag.
- Support for parsing list and dictionary setting from environment variables.
- Added new flags to import_dashboards (-cacert, -cert, -key, -insecure). {pull}3139[3139] {pull}3163[3163]
- The limit for the number of fields is increased via the mapping template. {pull}3275[3275]

*Metricbeat*
- Kafka module broker matching enhancements. {pull}3129[3129]
Expand Down
1 change: 1 addition & 0 deletions filebeat/filebeat.template.json
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,7 @@
},
"order": 0,
"settings": {
"index.mapping.total_fields.limit": 10000,
"index.refresh_interval": "5s"
},
"template": "filebeat-*"
Expand Down
1 change: 1 addition & 0 deletions heartbeat/heartbeat.template.json
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@
},
"order": 0,
"settings": {
"index.mapping.total_fields.limit": 10000,
"index.refresh_interval": "5s"
},
"template": "heartbeat-*"
Expand Down
7 changes: 6 additions & 1 deletion libbeat/scripts/generate_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def fields_to_es_template(args, input, output, index, version):
"template": index,
"order": 0,
"settings": {
"index.refresh_interval": "5s"
"index.refresh_interval": "5s",
},
"mappings": {
"_default_": {
Expand All @@ -66,6 +66,11 @@ def fields_to_es_template(args, input, output, index, version):
template["mappings"]["_default_"]["_all"]["norms"] = {
"enabled": False
}
else:
# For ES 5.x, increase the limit on the max number of fields.
# In a typical scenario, most fields are not used, so increasing the
# limit shouldn't be that bad.
template["settings"]["index.mapping.total_fields.limit"] = 10000

properties = {}
dynamic_templates = []
Expand Down
1 change: 1 addition & 0 deletions metricbeat/metricbeat.template.json
Original file line number Diff line number Diff line change
Expand Up @@ -3696,6 +3696,7 @@
},
"order": 0,
"settings": {
"index.mapping.total_fields.limit": 10000,
"index.refresh_interval": "5s"
},
"template": "metricbeat-*"
Expand Down
1 change: 1 addition & 0 deletions packetbeat/packetbeat.template.json
Original file line number Diff line number Diff line change
Expand Up @@ -1359,6 +1359,7 @@
},
"order": 0,
"settings": {
"index.mapping.total_fields.limit": 10000,
"index.refresh_interval": "5s"
},
"template": "packetbeat-*"
Expand Down
1 change: 1 addition & 0 deletions winlogbeat/winlogbeat.template.json
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@
},
"order": 0,
"settings": {
"index.mapping.total_fields.limit": 10000,
"index.refresh_interval": "5s"
},
"template": "winlogbeat-*"
Expand Down