# How to create index pattern(data view) for all indices

**URL:** https://discuss.elastic.co/t/how-to-create-index-pattern-data-view-for-all-indices/346134
**Category:** Kibana
**Created:** [October 31, 2023, 12:56pm UTC](https://discuss.elastic.co/t/how-to-create-index-pattern-data-view-for-all-indices/346134 "2023-10-31T12:56:54Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Sandeep\_Raju](https://avatars.discourse-cdn.com/v4/letter/s/8797f3/32.png) [@Sandeep\_Raju](https://discuss.elastic.co/u/Sandeep_Raju)
#### Post date: [October 31, 2023, 12:56pm UTC](https://discuss.elastic.co/t/how-to-create-index-pattern-data-view-for-all-indices/346134/1 "2023-10-31T12:56:54Z")

</div>

Hi all,

I'm using Kibana 8.6.2. I had added indices some time back and don't want to delete or modify them.

I have about 70 indices with different names:

eg:

1. locations
2. roles
3. tasks
4. stats
5. tickets
6. stats

These were created some time back by my friend without a common prefix phrase.

Now is there any way to combine these indices into 1 index pattern and retrieve common field data ?

I tried combining indices with \* index pattern, but it was not possible.

 ![Screenshot 2023-10-31 at 6.27.17 PM](https://us1.discourse-cdn.com/elastic/original/3X/0/1/01b125bfad24f0c78ac997b6f2d37bb0dbbaa764.png)

Any ideas?

---

<div class="post-metadata">

### Author: ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)
#### Post date: [October 31, 2023, 1:10pm UTC](https://discuss.elastic.co/t/how-to-create-index-pattern-data-view-for-all-indices/346134/2 "2023-10-31T13:10:49Z")

</div>

Since you cannot use a single `*` as the index pattern, you will need to create multiple index patterns that match all your index.

Probably having every letter followed by a `*` will solve your issue.

Something like this:

```auto
a*,b*,c*,...,z*

```

Pretty ugly, but it is a work around for this limitation.

---

<div class="post-metadata">

### Author: ![Sandeep\_Raju](https://avatars.discourse-cdn.com/v4/letter/s/8797f3/32.png) [@Sandeep\_Raju](https://discuss.elastic.co/u/Sandeep_Raju)
#### Post date: [October 31, 2023, 1:11pm UTC](https://discuss.elastic.co/t/how-to-create-index-pattern-data-view-for-all-indices/346134/3 "2023-10-31T13:11:39Z")

</div>

Thanks @leandrojmp

---

<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: [November 28, 2023, 1:11pm UTC](https://discuss.elastic.co/t/how-to-create-index-pattern-data-view-for-all-indices/346134/4 "2023-11-28T13:11:44Z")

</div>

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