# Template - settings max\_result\_window (doesn't affect new index)

**URL:** <https://discuss.elastic.co/t/template-settings-max-result-window-doesnt-affect-new-index/130754>\
**Category:** Elasticsearch\
**Created:** [May 6, 2018, 3:50pm UTC](https://discuss.elastic.co/t/template-settings-max-result-window-doesnt-affect-new-index/130754 "2018-05-06T15:50:00Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![yaara](https://avatars.discourse-cdn.com/v4/letter/y/c2a13f/32.png) [@yaara](https://discuss.elastic.co/u/yaara)\
**Post date:** [May 6, 2018, 3:50pm UTC](https://discuss.elastic.co/t/template-settings-max-result-window-doesnt-affect-new-index/130754/1 "2018-05-06T15:50:00Z")

</div>

Hi,  
I've created a template  
PUT /\_template/logstash  
{  
"index\_patterns" : ["logstash\*"],  
"settings": {  
"max\_result\_window": 500000  
},  
"mappings": { ....}  
}

but the max\_result\_window on new indexes is still 10,000. when I update the index mapping it works, but I need it to be automatic.

(im using ES 5.6.7)

does anyone have an idea?

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [May 6, 2018, 4:51pm UTC](https://discuss.elastic.co/t/template-settings-max-result-window-doesnt-affect-new-index/130754/2 "2018-05-06T16:51:23Z")

</div>

May be another template?  
Or your index name does not start with logstash?

---

<div class="post-metadata">

**Author:** ![yaara](https://avatars.discourse-cdn.com/v4/letter/y/c2a13f/32.png) [@yaara](https://discuss.elastic.co/u/yaara)\
**Post date:** [May 6, 2018, 5:04pm UTC](https://discuss.elastic.co/t/template-settings-max-result-window-doesnt-affect-new-index/130754/3 "2018-05-06T17:04:45Z")

</div>

this is the only template, the index created daily by the exact mapping so I'm pretty sure the template is applied. only this settings from some reason doesn't...

I run GET /\_template/  
got:

{  
"logstash": {  
"order": 0,  
"template": "[logstash-\*]",  
"settings": {  
"index": {  
"max\_result\_window": "500000"  
}  
},  
"mappings": {... },  
"aliases": {}  
}  
}

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [May 6, 2018, 5:22pm UTC](https://discuss.elastic.co/t/template-settings-max-result-window-doesnt-affect-new-index/130754/4 "2018-05-06T17:22:38Z")

</div>

Can you reproduce from scratch with a new cluster?

---

<div class="post-metadata">

**Author:** ![yaara](https://avatars.discourse-cdn.com/v4/letter/y/c2a13f/32.png) [@yaara](https://discuss.elastic.co/u/yaara)\
**Post date:** [May 15, 2018, 1:38pm UTC](https://discuss.elastic.co/t/template-settings-max-result-window-doesnt-affect-new-index/130754/6 "2018-05-15T13:38:16Z")

</div>

still the same ☹

---

<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:** [June 12, 2018, 1:38pm UTC](https://discuss.elastic.co/t/template-settings-max-result-window-doesnt-affect-new-index/130754/7 "2018-06-12T13:38:17Z")

</div>

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