# Possible to set default refresh\_interval for all new indices?

**URL:** <https://discuss.elastic.co/t/possible-to-set-default-refresh-interval-for-all-new-indices/57993>\
**Category:** Elasticsearch\
**Created:** [August 15, 2016, 12:52am UTC](https://discuss.elastic.co/t/possible-to-set-default-refresh-interval-for-all-new-indices/57993 "2016-08-15T00:52:16Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![jstultz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jstultz/32/11370_2.png) [@jstultz](https://discuss.elastic.co/u/jstultz)\
**Post date:** [August 15, 2016, 2:10am UTC](https://discuss.elastic.co/t/possible-to-set-default-refresh-interval-for-all-new-indices/57993/3 "2016-08-15T02:10:26Z")

</div>

Excellent, thank you very much.

For future reference to others viewing, this worked for me:

```auto
curl -XPUT hostname:9200:/_template/all_indices -d '
{
  "template": "*",
  "settings": {
    "refresh_interval": "30s"
  }
}
`

```

---

_[View the full topic](https://discuss.elastic.co/t/possible-to-set-default-refresh-interval-for-all-new-indices/57993)._
