# Non-UI way of setting default index pattern

**URL:** https://discuss.elastic.co/t/non-ui-way-of-setting-default-index-pattern/210644
**Category:** Kibana
**Created:** [December 5, 2019, 8:36am UTC](https://discuss.elastic.co/t/non-ui-way-of-setting-default-index-pattern/210644 "2019-12-05T08:36:34Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![AshTappin](https://avatars.discourse-cdn.com/v4/letter/a/278dde/32.png) [@AshTappin](https://discuss.elastic.co/u/AshTappin)
#### Post date: [December 5, 2019, 8:36am UTC](https://discuss.elastic.co/t/non-ui-way-of-setting-default-index-pattern/210644/1 "2019-12-05T08:36:35Z")

</div>

I am currently starting up Kibana with Docker and I was wondering if there was a way of specifying the default index pattern without manually doing it through the UI? I am aware there is an API which I can use to create an index pattern, meaning I could do a Curl command in Docker. But is there not a simpler config property or similar that can be set?

---

<div class="post-metadata">

### Author: ![flash1293](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/flash1293/32/41227_2.png) [@flash1293](https://discuss.elastic.co/u/flash1293)
#### Post date: [December 5, 2019, 8:59am UTC](https://discuss.elastic.co/t/non-ui-way-of-setting-default-index-pattern/210644/2 "2019-12-05T08:59:17Z")

</div>

Hi @AshTappin,

thanks for reaching out. The default index pattern is a property of the "advanced settings" which is a saved object stored in Elasticsearch itself. Because of that there is no way to set it via a config file. Using a curl command sounds like the right approach.

---

<div class="post-metadata">

### Author: ![AshTappin](https://avatars.discourse-cdn.com/v4/letter/a/278dde/32.png) [@AshTappin](https://discuss.elastic.co/u/AshTappin)
#### Post date: [December 5, 2019, 11:16am UTC](https://discuss.elastic.co/t/non-ui-way-of-setting-default-index-pattern/210644/3 "2019-12-05T11:16:30Z")

</div>

Ok thanks @flash1293!

---

<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: [January 2, 2020, 11:16am UTC](https://discuss.elastic.co/t/non-ui-way-of-setting-default-index-pattern/210644/4 "2020-01-02T11:16:36Z")

</div>

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