# Create time-series with stream data

**URL:** <https://discuss.elastic.co/t/create-time-series-with-stream-data/317352>\
**Category:** Kibana\
**Created:** [October 24, 2022, 10:54pm UTC](https://discuss.elastic.co/t/create-time-series-with-stream-data/317352 "2022-10-24T22:54:58Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ismael\_Alvarez](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ismael_alvarez/32/105421_2.png) [@Ismael\_Alvarez](https://discuss.elastic.co/u/Ismael_Alvarez)\
**Post date:** [October 24, 2022, 10:54pm UTC](https://discuss.elastic.co/t/create-time-series-with-stream-data/317352/1 "2022-10-24T22:54:58Z")

</div>

hey there!

I need to create a graph with the stream data, I attach an example graph that I need to create and stream logs.

I appreciate the support, I have tried to create but without results,

best Regards  
Ismael

 ![stream](https://us1.discourse-cdn.com/elastic/original/3X/3/d/3df1f5f0f4c01fd7a64e18ab526c6c5d13ebd482.png)  
 ![example](https://us1.discourse-cdn.com/elastic/original/3X/2/9/2976c0bb74e2135c3382503f62a04fddf99d7b14.png)

---

<div class="post-metadata">

**Author:** ![jsanz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsanz/32/53734_2.png) [@jsanz](https://discuss.elastic.co/u/jsanz)\
**Post date:** [October 27, 2022, 12:47pm UTC](https://discuss.elastic.co/t/create-time-series-with-stream-data/317352/2 "2022-10-27T12:47:14Z")

</div>

If the field from your streamed data is of a numeric type you should be able to render your chart normally in Kibana using the line chart type in a new [Lens visualization](https://www.elastic.co/guide/en/kibana/current/lens.html).

What have you tried? What is the [mapping](https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping.html) of the data you want to render?

You can check the mappings of your index from the [Kibana DevTools console](https://www.elastic.co/guide/en/kibana/current/console-kibana.html) calling to `GET your_index/_mapping` or from the [Index Management](https://www.elastic.co/guide/en/elasticsearch/reference/8.4/index-mgmt.html) application

---

<div class="post-metadata">

**Author:** ![Ismael\_Alvarez](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ismael_alvarez/32/105421_2.png) [@Ismael\_Alvarez](https://discuss.elastic.co/u/Ismael_Alvarez)\
**Post date:** [October 27, 2022, 9:02pm UTC](https://discuss.elastic.co/t/create-time-series-with-stream-data/317352/3 "2022-10-27T21:02:58Z")

</div>

Hi Jorge

I have tried with Quick functions but without results, maybe with some formula this will work.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/1/f/1f3167a97e25f3daa4955e8db614eb3e522f7e8d.png)

---

<div class="post-metadata">

**Author:** ![Ismael\_Alvarez](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ismael_alvarez/32/105421_2.png) [@Ismael\_Alvarez](https://discuss.elastic.co/u/Ismael_Alvarez)\
**Post date:** [October 27, 2022, 10:54pm UTC](https://discuss.elastic.co/t/create-time-series-with-stream-data/317352/4 "2022-10-27T22:54:36Z")

</div>

Maybe i need convert data from string to number, Any ideas to do this quickly?

---

<div class="post-metadata">

**Author:** ![jsanz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsanz/32/53734_2.png) [@jsanz](https://discuss.elastic.co/u/jsanz)\
**Post date:** [October 31, 2022, 4:17pm UTC](https://discuss.elastic.co/t/create-time-series-with-stream-data/317352/5 "2022-10-31T16:17:55Z")

</div>

If there's not a lot of data you may want to add a [runtime field](https://www.elastic.co/guide/en/elasticsearch/reference/8.4/runtime.html) to your mapping or your [Kibana Data view](https://www.elastic.co/guide/en/kibana/8.4/managing-data-views.html#runtime-fields) to convert the data on read. This may be slow if you are hitting a large amount of data so your other option is to [reindex](https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-reindex.html) the data with an [ingest pipeline](https://www.elastic.co/guide/en/elasticsearch/reference/8.4/ingest.html).

---

<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 27, 2022, 10:38pm UTC](https://discuss.elastic.co/t/create-time-series-with-stream-data/317352/6 "2022-11-27T22:38:31Z")

</div>



---

<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 25, 2022, 2:38pm UTC](https://discuss.elastic.co/t/create-time-series-with-stream-data/317352/7 "2022-12-25T14:38:18Z")

</div>



---

<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:** [January 22, 2023, 2:38pm UTC](https://discuss.elastic.co/t/create-time-series-with-stream-data/317352/8 "2023-01-22T14:38:41Z")

</div>

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