# How to make my index default index pattern

**URL:** https://discuss.elastic.co/t/how-to-make-my-index-default-index-pattern/148020
**Category:** Logstash
**Created:** [September 10, 2018, 9:05pm UTC](https://discuss.elastic.co/t/how-to-make-my-index-default-index-pattern/148020 "2018-09-10T21:05:29Z")
**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 10, 2018, 9:05pm UTC](https://discuss.elastic.co/t/how-to-make-my-index-default-index-pattern/148020/1 "2018-09-10T21:05:29Z")

</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? Right now I still have to create the index pattern `myIndex-*` and set timestamp. I'd like to have that ready to go out of the box.

Apologies if this is more a kibana question or elasticsearch question, but I'll start here as these settings are in logstash.conf.

Thanks,  
Jas

---

<div class="post-metadata">

### Author: ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)
#### Post date: [September 11, 2018, 7:36am UTC](https://discuss.elastic.co/t/how-to-make-my-index-default-index-pattern/148020/2 "2018-09-11T07:36:30Z")

</div>

> How can I get myIndex to be the default index in kibana? Right now I still have to create the index pattern `myIndex-*` and set timestamp. I'd like to have that ready to go out of the box.

I suggest you ask that question in the Kibana category. Logstash can't affect that.

(Also, index names can't contain uppercase letters.)

---

<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:15pm UTC](https://discuss.elastic.co/t/how-to-make-my-index-default-index-pattern/148020/3 "2018-09-11T16:15:36Z")

</div>

Hi,

Thanks, I'll repost there.

and yes, I mistyped my index here as I didn't want to include the actual name.

thanks,  
jas

---

<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 9, 2018, 4:15pm UTC](https://discuss.elastic.co/t/how-to-make-my-index-default-index-pattern/148020/4 "2018-10-09T16:15:40Z")

</div>

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