# ES SQL against index pattern

**URL:** <https://discuss.elastic.co/t/es-sql-against-index-pattern/339447>\
**Category:** Kibana\
**Created:** [July 27, 2023, 1:50pm UTC](https://discuss.elastic.co/t/es-sql-against-index-pattern/339447 "2023-07-27T13:50:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tangkalo](https://avatars.discourse-cdn.com/v4/letter/t/cdc98d/32.png) [@tangkalo](https://discuss.elastic.co/u/tangkalo)\
**Post date:** [July 27, 2023, 1:50pm UTC](https://discuss.elastic.co/t/es-sql-against-index-pattern/339447/1 "2023-07-27T13:50:41Z")

</div>

Hi, one of my ES SQL in a Canvas workpad runs against an index pattern(i.e. some-index-name\* ) which cannot be found in the dropdown list of Kibana Discover's dropdown list. Could this be a permission issue in Kibana?

I do see indices with names matching the above pattern, e.g. some-index-name-2022.01.02-000123

Thanks for any information.

---

<div class="post-metadata">

**Author:** ![markov00](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/markov00/32/33316_2.png) [@markov00](https://discuss.elastic.co/u/markov00)\
**Post date:** [July 27, 2023, 2:45pm UTC](https://discuss.elastic.co/t/es-sql-against-index-pattern/339447/2 "2023-07-27T14:45:27Z")

</div>

Is not an error, is the fact that in Kibana we are not using anymore index pattern strings, but you have to create a Data View in the "Stack Management" -\> Kibana Data View  
Here you can add your index pattern string and create a Data View that is what Discover/Dashboard/Lens use to display/aggregate data

---

<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:** [August 24, 2023, 2:46pm UTC](https://discuss.elastic.co/t/es-sql-against-index-pattern/339447/3 "2023-08-24T14:46:21Z")

</div>

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