We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi, trying to set this up in elasticsearch 8.9.1
Template creation I copy pasted is giving me an error, what I am missing ?
{ "template": "alertmanager-2*", "settings": { "number_of_shards": 1, "number_of_replicas": 1, "index.refresh_interval": "10s", "index.query.default_field": "groupLabels.alertname" }, "mappings": { "_default_": { "_all": { "enabled": false }, "properties": { "@timestamp": { "type": "date", "doc_values": true } }, "dynamic_templates": [ { "string_fields": { "match": "*", "match_mapping_type": "string", "mapping": { "type": "string", "index": "not_analyzed", "ignore_above": 1024, "doc_values": true } } } ] } } }
{ "statusCode": 400, "error": "Bad Request", "message": "[1:328] [index_template] failed to parse field [template]", "attributes": { "error": { "root_cause": [ { "type": "x_content_parse_exception", "reason": "[1:328] [template] failed to parse field [settings]" } ], "type": "x_content_parse_exception", "reason": "[1:328] [index_template] failed to parse field [template]", "caused_by": { "type": "x_content_parse_exception", "reason": "[1:328] [template] failed to parse field [settings]", "caused_by": { "type": "illegal_state_exception", "reason": "only value lists are allowed in serialized settings" } } }, "causes": [ "[1:328] [template] failed to parse field [settings]", "only value lists are allowed in serialized settings" ] } }
The text was updated successfully, but these errors were encountered:
what about this?
{ "template": "alertmanager-2*", "settings": { "number_of_shards": 1, "number_of_replicas": 1, "index": { "refresh_interval": "10s", "query": { "default_field": "groupLabels.alertname" } } }, "mappings": { "_default_": { "_all": { "enabled": false }, "properties": { "@timestamp": { "type": "date", "doc_values": true } }, "dynamic_templates": [ { "string_fields": { "match": "*", "match_mapping_type": "string", "mapping": { "type": "string", "index": "not_analyzed", "ignore_above": 1024, "doc_values": true } } } ] } } }
@@ -6,7 +6,7 @@ "template": "alertmanager-2*", "settings": { - "number_of_shards": 1, - "number_of_replicas": 1, - "index.refresh_interval": "10s", - "index.query.default_field": "groupLabels.alertname" + "number_of_shards": 1, + "number_of_replicas": 1, + "index": { + "refresh_interval": "10s", + "query": { + "default_field": "groupLabels.alertname" + } + } }, "mappings": { "_default_": { @@
Sorry, something went wrong.
No branches or pull requests
Hi,
trying to set this up in
elasticsearch 8.9.1
Template creation I copy pasted is giving me an error, what I am missing ?
The text was updated successfully, but these errors were encountered: