Open smarakdas314 opened 8 months ago
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_": {
@@
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 ?