# 'New' index patterns are not specific enough

**URL:** https://discuss.elastic.co/t/new-index-patterns-are-not-specific-enough/50666
**Category:** Kibana
**Created:** [May 23, 2016, 6:28am UTC](https://discuss.elastic.co/t/new-index-patterns-are-not-specific-enough/50666 "2016-05-23T06:28:03Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Jurg\_van\_Vliet](https://avatars.discourse-cdn.com/v4/letter/j/ce73a5/32.png) [@Jurg\_van\_Vliet](https://discuss.elastic.co/u/Jurg_van_Vliet)
#### Post date: [May 23, 2016, 6:28am UTC](https://discuss.elastic.co/t/new-index-patterns-are-not-specific-enough/50666/1 "2016-05-23T06:28:03Z")

</div>

hi all,

last couple of weeks we were having a lot of trouble getting the new kibana to not break our elasticsearch cluster.

this morning i realized what the problem might be. we moved from the (now deprecated) index pattern like "[30mhz-com-][YYYY.MM](http://YYYY.MM)" to the new "30mhz-com-\*". this causes problems because we have index names like 30mhz-com-2015.11.20160521 with an alias like 30mhz-com-2015.11.

if we switch back to the old naming patterns it works like a charm. i couldn't find out how to use a naming pattern like this without using the deprecated way. documentation suggests it should be possible, but kibana doesn't recognize/find the indexes, and i can't create the index pattern.

groet,  
jurg.

---

<div class="post-metadata">

### Author: ![spalger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spalger/32/14092_2.png) [@spalger](https://discuss.elastic.co/u/spalger)
#### Post date: [May 23, 2016, 4:25pm UTC](https://discuss.elastic.co/t/new-index-patterns-are-not-specific-enough/50666/2 "2016-05-23T16:25:56Z")

</div>

There isn't a way to create a wildcard that will match `30mhz-com-2015.11` but not `30mhz-com-2015.11.20160521`, so you either have to keep using the unoptimized `[30mhz-com-]YYYY.MM` format or change your index patterns to have an identifier of some sort before the date.

Maybe you could change your aliases to `30mhz-com-monthly-2015.11` and then use the `30mhz-com-monthly-*` wildcard to match those aliases.

But I'm curious what the purpose of the aliases is. With the new optimizations Kibana will only access the indices necessary to fill out the time range using the field stats api, so if these aliases are simply for making querying from kibana easier with the old date-pattern-based index patterns you could just get rid of them completely.

---

<div class="post-metadata">

### Author: ![Jurg\_van\_Vliet](https://avatars.discourse-cdn.com/v4/letter/j/ce73a5/32.png) [@Jurg\_van\_Vliet](https://discuss.elastic.co/u/Jurg_van_Vliet)
#### Post date: [May 23, 2016, 5:16pm UTC](https://discuss.elastic.co/t/new-index-patterns-are-not-specific-enough/50666/3 "2016-05-23T17:16:34Z")

</div>

re-indexing is not my favorite hobby. each of our indexes is over 40G,  
without shards. changing the naming pattern would work, but it means we'd  
have to change different components of our system.

the purpose of the aliases is to make working with indexes more convenient.  
the naming of the indexes was just something logical. the naming of the  
aliases was logstash format.

how long are you going to keep the old index patterns?

---

<div class="post-metadata">

### Author: ![spalger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spalger/32/14092_2.png) [@spalger](https://discuss.elastic.co/u/spalger)
#### Post date: [May 23, 2016, 5:21pm UTC](https://discuss.elastic.co/t/new-index-patterns-are-not-specific-enough/50666/4 "2016-05-23T17:21:04Z")

</div>

For the foreseeable future, but you would benefit from querying the underlying indices directly as Kibana can execute a query for the "last 15 minutes" on the single underlying index, rather than consulting all indices with the `30mhz-com-2016.05` alias

---

<div class="post-metadata">

### Author: ![Jurg\_van\_Vliet](https://avatars.discourse-cdn.com/v4/letter/j/ce73a5/32.png) [@Jurg\_van\_Vliet](https://discuss.elastic.co/u/Jurg_van_Vliet)
#### Post date: [May 27, 2016, 4:30am UTC](https://discuss.elastic.co/t/new-index-patterns-are-not-specific-enough/50666/5 "2016-05-27T04:30:54Z")

</div>

i re-indexed all my indexes to a pattern like 30mhz.com-2015.05, with aliases like 30mhz-com-2015.05. changing back from the monthly rotating naming pattern (deprecated) to the new 'optimized' naming pattern breaks my cluster again.

we run a cluster of 6 data nodes (16G), 3 master nodes and 2 client nodes (also 16G). 17 indexes, growing from 60m documents (40G) to 90m documents (54G).

---

<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: [July 6, 2017, 1:52pm UTC](https://discuss.elastic.co/t/new-index-patterns-are-not-specific-enough/50666/6 "2017-07-06T13:52:09Z")

</div>


