# Index template not match as will after i modify it in dev-tool

**URL:** https://discuss.elastic.co/t/index-template-not-match-as-will-after-i-modify-it-in-dev-tool/94593
**Category:** Elasticsearch
**Created:** [July 26, 2017, 8:15am UTC](https://discuss.elastic.co/t/index-template-not-match-as-will-after-i-modify-it-in-dev-tool/94593 "2017-07-26T08:15:06Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![gangxiong\_chen](https://avatars.discourse-cdn.com/v4/letter/g/87869e/32.png) [@gangxiong\_chen](https://discuss.elastic.co/u/gangxiong_chen)
#### Post date: [July 26, 2017, 8:15am UTC](https://discuss.elastic.co/t/index-template-not-match-as-will-after-i-modify-it-in-dev-tool/94593/1 "2017-07-26T08:15:06Z")

</div>

first create index template like this use java transport client:  
template 1  
"order": 0,  
"template": "log\_\*",  
"settings": {  
"index": {  
"mapper": {  
"dynamic": "true"  
},  
"mapping": {  
"ignore\_malformed": "true"  
},  
"refresh\_interval": "30s"  
}  
},  
"mappings": {  
"log": {  
"\_all": {  
"enabled": false  
},  
"properties": {  
"\_ip": {  
"ignore\_above": "32766",  
"type": "keyword"  
},  
"\_log": {  
"type": "text"  
}  
}  
}  
},  
"aliases": {}

template 2  
"order": 1,  
"template": "log\_esearch-canal-20\*",  
"settings": { },  
"mappings": {  
"log": {  
"properties": {  
"logLevel": {  
"ignore\_above": "32766",  
"type": "keyword"  
},  
"\_log": {  
"type": "text"  
},  
"\_time": {  
"format": "yyyy-MM-dd HH:mm:ss",  
"type": "date"  
}  
}  
}

* * *

then i create index "log\_esearch-canal-20170726"  
the index mapping contain properties[\_ip, \_log, logLevel, \_time], this is what i want

but when i use dev-tool in kibana and use get & put to modify the first template's refresh\_interval to "31s"  
then i create index "log\_esearch-canal-20170727"  
the index mapping only contain properties which in the first template [\_ip, \_log]

es version : 5.2.2

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [August 23, 2017, 8:15am UTC](https://discuss.elastic.co/t/index-template-not-match-as-will-after-i-modify-it-in-dev-tool/94593/2 "2017-08-23T08:15:11Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
