"index":no is the option we need to provide in template. But we are not sure about its syntax and where exactly to put it. Here is our template:
{
"order": 0,
"template": "delivery-app-",
"settings": {
"index": {
"refresh_interval": "5s"
}
},
"mappings": {
"default": {
"dynamic_templates": [
{
"template1": {
"mapping": {
"ignore_above": 1024,
"index": "not_analyzed",
"type": "{dynamic_type}",
"doc_values": true
},
"match": ""
}
}
],
"_all": {
"norms": {
"enabled": false
},
"enabled": true
},
"properties": {
"severity": {
"index": "not_analyzed",
"type": "string"
},
"offset": {
"type": "long",
"doc_values": "true"
},
"reportid": {
"index": "not_analyzed",
"type": "string"
},
"tmh_report": {
"index": "not_analyzed",
"type": "string"
},
"query": {
"index": "not_analyzed",
"type": "string"
},
"reportversion": {
"index": "not_analyzed",
"type": "string"
},
"emailid": {
"index": "not_analyzed",
"type": "string"
},
"source": {
"index": "not_analyzed",
"type": "string"
},
"thread": {
"index": "not_analyzed",
"type": "string"
},
"message": {
"index": "not_analyzed",
"type": "string"
},
"type": {
"index": "not_analyzed",
"type": "string"
},
"filter": {
"index": "not_analyzed",
"type": "string"
},
"profile_name": {
"index": "not_analyzed",
"type": "string"
},
"@timestamp": {
"type": "date"
},
"profileid": {
"index": "not_analyzed",
"type": "string"
},
"name": {
"index": "not_analyzed",
"type": "string"
},
"publish_date": {
"index": "not_analyzed",
"type": "string"
},
"status": {
"index": "not_analyzed",
"type": "string"
},
"timestamp": {
"index": "not_analyzed",
"type": "string"
}
}
}
},
"aliases": {}
}