# Create default index

**URL:** https://discuss.elastic.co/t/create-default-index/148178
**Category:** Kibana
**Created:** [September 11, 2018, 4:19pm UTC](https://discuss.elastic.co/t/create-default-index/148178 "2018-09-11T16:19:08Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Jas\_Ahluwalia](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jas_ahluwalia/32/34915_2.png) [@Jas\_Ahluwalia](https://discuss.elastic.co/u/Jas_Ahluwalia)
#### Post date: [September 11, 2018, 4:19pm UTC](https://discuss.elastic.co/t/create-default-index/148178/1 "2018-09-11T16:19:08Z")

</div>

Hi,

I have the following in my logstash.conf file:

```auto
 output {
 	elasticsearch {
  		hosts => "elasticsearch:9200"
        index => "myindex-%{+YYYY.MM.dd}"
  	}
}

```

How can I get myindex to be the default index in kibana via some kibana.yml or logstash.conf (or any other non-gui way)? Right now I still have to create the index pattern `myindex-*` and set timestamp via the gui. I'd like to have that ready to go out of the box.

I had previously asked this same question in the logstash discussion, but was directed to ask it here. Your help is much appreciated.

Thanks,  
Jas

---

<div class="post-metadata">

### Author: ![bhavyarm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bhavyarm/32/22392_2.png) [@bhavyarm](https://discuss.elastic.co/u/bhavyarm)
#### Post date: [September 11, 2018, 5:08pm UTC](https://discuss.elastic.co/t/create-default-index/148178/2 "2018-09-11T17:08:50Z")

</div>

Hi,

Not very easily. Users usually create index patterns.

You should log an enhancement request here:  
Beats in our stack creates does this by using APIs : [https://github.com/elastic/kibana/pull/10858](https://github.com/elastic/kibana/pull/10858)

Please note we don't consider this the official api yet. You can give it a try.

Thanks,  
Bhavya

---

<div class="post-metadata">

### Author: ![shoffmeister](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shoffmeister/32/36086_2.png) [@shoffmeister](https://discuss.elastic.co/u/shoffmeister)
#### Post date: [September 18, 2018, 12:53pm UTC](https://discuss.elastic.co/t/create-default-index/148178/3 "2018-09-18T12:53:51Z")

</div>

Have a look at [https://www.elastic.co/guide/en/kibana/master/saved-objects-api-create.html](https://www.elastic.co/guide/en/kibana/master/saved-objects-api-create.html)

---

<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: [October 16, 2018, 12:53pm UTC](https://discuss.elastic.co/t/create-default-index/148178/4 "2018-10-16T12:53:54Z")

</div>

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