# Which Data type to be used for time field

**URL:** <https://discuss.elastic.co/t/which-data-type-to-be-used-for-time-field/104676>\
**Category:** Logstash\
**Created:** [October 20, 2017, 8:56am UTC](https://discuss.elastic.co/t/which-data-type-to-be-used-for-time-field/104676 "2017-10-20T08:56:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joeltstephen](https://avatars.discourse-cdn.com/v4/letter/j/53a042/32.png) [@Joeltstephen](https://discuss.elastic.co/u/Joeltstephen)\
**Post date:** [October 20, 2017, 8:56am UTC](https://discuss.elastic.co/t/which-data-type-to-be-used-for-time-field/104676/1 "2017-10-20T08:56:17Z")

</div>

Hi Team,

My log file contains time field which has data like `0.3354353` but using data type `float` in my `configuration file`, it is parsing only last 2 digit after dot.

What data type should to parse the total data in the time field.

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [October 23, 2017, 5:18am UTC](https://discuss.elastic.co/t/which-data-type-to-be-used-for-time-field/104676/2 "2017-10-23T05:18:05Z")

</div>

> My log file contains time field which has data like 0.3354353

What does such a time value mean?

> using data type float in my configuration file

What does your configuration file look like?

> it is parsing only last 2 digit after dot.

What do you mean by that? Examples speak louder than descriptions.

---

<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 20, 2017, 5:18am UTC](https://discuss.elastic.co/t/which-data-type-to-be-used-for-time-field/104676/3 "2017-11-20T05:18:23Z")

</div>

Closed on November 20, 2017, 5:18am UTC

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