# Bulk from python doesn't parse datetime type

**URL:** https://discuss.elastic.co/t/bulk-from-python-doesnt-parse-datetime-type/185719
**Category:** Kibana
**Created:** [June 13, 2019, 6:40pm UTC](https://discuss.elastic.co/t/bulk-from-python-doesnt-parse-datetime-type/185719 "2019-06-13T18:40:57Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Jobdelac](https://avatars.discourse-cdn.com/v4/letter/j/13edae/32.png) [@Jobdelac](https://discuss.elastic.co/u/Jobdelac)
#### Post date: [June 13, 2019, 6:40pm UTC](https://discuss.elastic.co/t/bulk-from-python-doesnt-parse-datetime-type/185719/1 "2019-06-13T18:40:57Z")

</div>

Hello, Elastic community!

I'm trying to load a bulk to Elasticsearch from a large dataset using a python script to parse. My data source file is made up of several columns with float type values and a last one with datetime format entries (yyyy-MM-ddTHH:mm:ss.SSS format). The mapping is successful, but the datetime values are mapping as "text" into the index. Why ES doesn't recognize this format as datetime? I've tried with different formats and the problem is the same.

PS: My goal is create an index pattern in Kibana to use Timelion for time series visualizations of this data with this datetime values. I use ES 6.7.

---

<div class="post-metadata">

### Author: ![MKU](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mku/32/48327_2.png) [@MKU](https://discuss.elastic.co/u/MKU)
#### Post date: [June 14, 2019, 8:39am UTC](https://discuss.elastic.co/t/bulk-from-python-doesnt-parse-datetime-type/185719/2 "2019-06-14T08:39:42Z")

</div>

Then try mapping time field statically

---

<div class="post-metadata">

### Author: ![Jobdelac](https://avatars.discourse-cdn.com/v4/letter/j/13edae/32.png) [@Jobdelac](https://discuss.elastic.co/u/Jobdelac)
#### Post date: [June 14, 2019, 6:18pm UTC](https://discuss.elastic.co/t/bulk-from-python-doesnt-parse-datetime-type/185719/3 "2019-06-14T18:18:54Z")

</div>

It works, thank you!

---

<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: [July 12, 2019, 6:22pm UTC](https://discuss.elastic.co/t/bulk-from-python-doesnt-parse-datetime-type/185719/4 "2019-07-12T18:22:02Z")

</div>

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