# Index patterns - comma-separated list

**URL:** <https://discuss.elastic.co/t/index-patterns-comma-separated-list/128013>\
**Category:** Kibana\
**Created:** [April 13, 2018, 5:15pm UTC](https://discuss.elastic.co/t/index-patterns-comma-separated-list/128013 "2018-04-13T17:15:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![aidofitz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aidofitz/32/51253_2.png) [@aidofitz](https://discuss.elastic.co/u/aidofitz)\
**Post date:** [April 13, 2018, 5:15pm UTC](https://discuss.elastic.co/t/index-patterns-comma-separated-list/128013/1 "2018-04-13T17:15:09Z")

</div>

Hi

ELK 6.2.3 - In Kibana I can define an index pattern based on a comma-separated list of indexes, rather than using wildcards. Kibana appears to accept this and shows me the correct list of indexes matching pattern, when creating the pattern. Also shows the correct combined list of fields from all indexes in my list when I review the index pattern. However, when I try to use this index pattern for a search in Discover tab, no results.

Is this comma-separated list a valid way to create an index pattern, and if not, why does Kibana seem to accept it? Thanks!

Regards,

Adrian

---

<div class="post-metadata">

**Author:** ![thomasneirynck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thomasneirynck/32/23313_2.png) [@thomasneirynck](https://discuss.elastic.co/u/thomasneirynck)\
**Post date:** [April 13, 2018, 6:34pm UTC](https://discuss.elastic.co/t/index-patterns-comma-separated-list/128013/2 "2018-04-13T18:34:45Z")

</div>

hi @aidofitz,

interesting, I can reproduce this. Using comma-separation isn't documented usage in Kibana ([https://www.elastic.co/guide/en/kibana/current/index-patterns.html](https://www.elastic.co/guide/en/kibana/current/index-patterns.html)), but it certainly does work in the indexpattern-creation wizard. It's also supported in ES of course.

e.g.

```auto
POST foobar1/type 
{
  "some": "value"
}

POST foobar2/type 
{
  "some other": "other value"
}

GET foobar1,foobar2/_search

GET foobar*/_search

```

My `foobar*` index pattern would display fine in Discover, but not my `foobar1,foobar2` index pattern.

This is may be a bug. Could you log this in`https://github.com/elastic/kibana/issues/new`? thx!

---

<div class="post-metadata">

**Author:** ![aidofitz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aidofitz/32/51253_2.png) [@aidofitz](https://discuss.elastic.co/u/aidofitz)\
**Post date:** [April 17, 2018, 4:51pm UTC](https://discuss.elastic.co/t/index-patterns-comma-separated-list/128013/3 "2018-04-17T16:51:14Z")

</div>

Thanks. Done - [https://github.com/elastic/kibana/issues/17748](https://github.com/elastic/kibana/issues/17748)

---

<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:** [May 15, 2018, 4:51pm UTC](https://discuss.elastic.co/t/index-patterns-comma-separated-list/128013/4 "2018-05-15T16:51:40Z")

</div>

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