# Data split into multiple Documents

**URL:** <https://discuss.elastic.co/t/data-split-into-multiple-documents/312808>\
**Category:** Elasticsearch\
**Created:** [August 24, 2022, 12:17pm UTC](https://discuss.elastic.co/t/data-split-into-multiple-documents/312808 "2022-08-24T12:17:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maruthappan\_Muthu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/maruthappan_muthu/32/100807_2.png) [@Maruthappan\_Muthu](https://discuss.elastic.co/u/Maruthappan_Muthu)\
**Post date:** [August 24, 2022, 12:17pm UTC](https://discuss.elastic.co/t/data-split-into-multiple-documents/312808/1 "2022-08-24T12:17:09Z")

</div>

I am writing the Prometheus collected metrics into Elasticsearch for every 2 minutes. I see multiple documents for a single data collection and each documents has different fields. Is this the way Elasticsearch stores the data or Is there any issues with integration? Actually, How can I build the dashboard with different fields? Ex., I need a Temperature value of a particular sensor. But the sensor is stored in different document and the temperature filed is stored in another document.

 ![Prometheus data](https://us1.discourse-cdn.com/elastic/original/3X/6/4/64ddf93a76fadf3a0f7e21ea3f42532a2fe8b90a.jpeg)

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [August 24, 2022, 12:24pm UTC](https://discuss.elastic.co/t/data-split-into-multiple-documents/312808/2 "2022-08-24T12:24:13Z")

</div>

How are you indexing the data into Elasticsearch? The document structure you have in place does not seem appropriate for what you are looking to achieve, so you will likely need to change this.

---

<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:** [September 21, 2022, 12:25pm UTC](https://discuss.elastic.co/t/data-split-into-multiple-documents/312808/3 "2022-09-21T12:25:10Z")

</div>

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