# Default index pattern in configuration file

**URL:** https://discuss.elastic.co/t/default-index-pattern-in-configuration-file/141351
**Category:** Kibana
**Created:** [July 24, 2018, 10:01am UTC](https://discuss.elastic.co/t/default-index-pattern-in-configuration-file/141351 "2018-07-24T10:01:34Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![abcd](https://avatars.discourse-cdn.com/v4/letter/a/c57346/32.png) [@abcd](https://discuss.elastic.co/u/abcd)
#### Post date: [July 24, 2018, 10:01am UTC](https://discuss.elastic.co/t/default-index-pattern-in-configuration-file/141351/1 "2018-07-24T10:01:34Z")

</div>

Is there a way to configure default index pattern in configuration file so I wouldn't have to set it manually after each redeploy?

---

<div class="post-metadata">

### Author: ![lukas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukas/32/6812_2.png) [@lukas](https://discuss.elastic.co/u/lukas)
#### Post date: [July 24, 2018, 7:25pm UTC](https://discuss.elastic.co/t/default-index-pattern-in-configuration-file/141351/2 "2018-07-24T19:25:56Z")

</div>

Unfortunately, there's not a way to set it in the configuration file. The only automated way I could think of would be to send a request to Elasticsearch to update the `.kibana` entry for config and update the `config.defaultIndex` after Kibana has started up.

---

<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 21, 2018, 7:37pm UTC](https://discuss.elastic.co/t/default-index-pattern-in-configuration-file/141351/3 "2018-08-21T19:37:49Z")

</div>

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