# Parsing multiple time series into Elasticsearch

**URL:** <https://discuss.elastic.co/t/parsing-multiple-time-series-into-elasticsearch/270082>\
**Category:** Logstash\
**Created:** [April 14, 2021, 6:51am UTC](https://discuss.elastic.co/t/parsing-multiple-time-series-into-elasticsearch/270082 "2021-04-14T06:51:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tkkchan](https://avatars.discourse-cdn.com/v4/letter/t/8491ac/32.png) [@tkkchan](https://discuss.elastic.co/u/tkkchan)\
**Post date:** [April 14, 2021, 6:51am UTC](https://discuss.elastic.co/t/parsing-multiple-time-series-into-elasticsearch/270082/1 "2021-04-14T06:51:23Z")

</div>

Dear all,  
I am not sure if this belongs to logstash... please correct me if not.  
I have some data that contains a field which is a time series, of interval 60sec. Should I map it into a single ES document, or should I expand it as a whole index, or is there any field types in ES to deal with this?  
Any hints or help would be appreciated. 🙂

An entry looks something like this:  
`... , timestamp, ... , 'loss': [-1, 0, 0, 0, 0, 0, 0, 0, 0, ...], 'latency': [-1, -1, -1, 0, 0, 0, 0, 0, 0, ...]`

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [April 14, 2021, 8:18am UTC](https://discuss.elastic.co/t/parsing-multiple-time-series-into-elasticsearch/270082/2 "2021-04-14T08:18:01Z")

</div>

If there is a single timestamp in the doc, then treat it as a single event. Even if it spans an interval of time.

---

<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 12, 2021, 8:18am UTC](https://discuss.elastic.co/t/parsing-multiple-time-series-into-elasticsearch/270082/3 "2021-05-12T08:18:09Z")

</div>

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