# Correlate index with field

**URL:** <https://discuss.elastic.co/t/correlate-index-with-field/209300>\
**Category:** Kibana\
**Created:** [November 25, 2019, 12:23pm UTC](https://discuss.elastic.co/t/correlate-index-with-field/209300 "2019-11-25T12:23:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Voula\_Mikr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/voula_mikr/32/58451_2.png) [@Voula\_Mikr](https://discuss.elastic.co/u/Voula_Mikr)\
**Post date:** [November 25, 2019, 12:23pm UTC](https://discuss.elastic.co/t/correlate-index-with-field/209300/1 "2019-11-25T12:23:22Z")

</div>

Hi!

I am using Elasticsearch in order to store data and Kibana for visualization of them.  
The index pattern of Elasticsearch is in the form of "data-YYYY-MM-DD", so in a Search in Kibana I have defined as index pattern "data\*" and respectively there is a field in kibana \_index (format: data-YYYY-MM-DD, type: string).  
There is also a field "data\_time" (type: date, format:YYYY-MM-DDTHH:MM:SS).  
I was wondering if there is a way to "connect" those two fields, that is when I am filtering with a specific dayAndTime (e.g. 2019-11-23T08:50:19 ), not to search all the fields "data\_time" of all elasticsearch indices but to search only index "data-2019-11-23".

---

<div class="post-metadata">

**Author:** ![nickpeihl](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nickpeihl/32/112622_2.png) [@nickpeihl](https://discuss.elastic.co/u/nickpeihl)\
**Post date:** [November 25, 2019, 8:13pm UTC](https://discuss.elastic.co/t/correlate-index-with-field/209300/2 "2019-11-25T20:13:00Z")

</div>

Hi @Voula_Mikr. I do not think there is an easy way to do this. However, I am curious what the performance benefit is? Have you tried benchmarking your query on in Elasticsearch for a single index versus an index pattern?

---

<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:** [December 23, 2019, 8:13pm UTC](https://discuss.elastic.co/t/correlate-index-with-field/209300/3 "2019-12-23T20:13:02Z")

</div>

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