# TimeStamp Preserve 6 digit ms

**URL:** <https://discuss.elastic.co/t/timestamp-preserve-6-digit-ms/91007>\
**Category:** Logstash\
**Created:** [June 27, 2017, 5:19pm UTC](https://discuss.elastic.co/t/timestamp-preserve-6-digit-ms/91007 "2017-06-27T17:19:04Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hoffin\_Ag](https://avatars.discourse-cdn.com/v4/letter/h/ba8739/32.png) [@Hoffin\_Ag](https://discuss.elastic.co/u/Hoffin_Ag)\
**Post date:** [June 27, 2017, 5:19pm UTC](https://discuss.elastic.co/t/timestamp-preserve-6-digit-ms/91007/1 "2017-06-27T17:19:04Z")

</div>

Hi ,  
Time ms upto 6 digit is crucial in our case, how to use 6 digit ms. in elastic truncating ms after 4 digit.  
Transactional system each ms is very important.

ex Format : yy:mm:dd hh:mm:ss:SSSSSSZ

elastic format : yy:mm:ddThh:mm:ss:SSSZ

---

<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:** [June 27, 2017, 5:28pm UTC](https://discuss.elastic.co/t/timestamp-preserve-6-digit-ms/91007/2 "2017-06-27T17:28:38Z")

</div>

Six-digit milliseconds are microseconds 🙂

Unfortunately Elasticsearch only supports millisecond resolution for timestamps.

---

<div class="post-metadata">

**Author:** ![Hoffin\_Ag](https://avatars.discourse-cdn.com/v4/letter/h/ba8739/32.png) [@Hoffin\_Ag](https://discuss.elastic.co/u/Hoffin_Ag)\
**Post date:** [June 27, 2017, 5:51pm UTC](https://discuss.elastic.co/t/timestamp-preserve-6-digit-ms/91007/3 "2017-06-27T17:51:07Z")

</div>

it doesn't support right. using unix timeformat store will it be helpfull.

---

<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:** [June 27, 2017, 5:52pm UTC](https://discuss.elastic.co/t/timestamp-preserve-6-digit-ms/91007/4 "2017-06-27T17:52:11Z")

</div>

> using unix timeformat store will it be helpfull.

If this is a question I don't understand what you mean.

---

<div class="post-metadata">

**Author:** ![Hoffin\_Ag](https://avatars.discourse-cdn.com/v4/letter/h/ba8739/32.png) [@Hoffin\_Ag](https://discuss.elastic.co/u/Hoffin_Ag)\
**Post date:** [June 27, 2017, 5:54pm UTC](https://discuss.elastic.co/t/timestamp-preserve-6-digit-ms/91007/5 "2017-06-27T17:54:20Z")

</div>

Is it possible to store and retrieve timestamp value in unix long value. while fetching convert it back to timestamp with microseconds. because at microsecond level we are keep tracking transactions and system behaviour and performance chart, this is essential.

---

<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:** [June 27, 2017, 6:02pm UTC](https://discuss.elastic.co/t/timestamp-preserve-6-digit-ms/91007/6 "2017-06-27T18:02:04Z")

</div>

You can certainly store the timestamp in long fields but ES won't be able to treat such fields as timestamps.

---

<div class="post-metadata">

**Author:** ![Hoffin\_Ag](https://avatars.discourse-cdn.com/v4/letter/h/ba8739/32.png) [@Hoffin\_Ag](https://discuss.elastic.co/u/Hoffin_Ag)\
**Post date:** [June 27, 2017, 6:03pm UTC](https://discuss.elastic.co/t/timestamp-preserve-6-digit-ms/91007/7 "2017-06-27T18:03:52Z")

</div>

in feature this feature can be provided?

---

<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:** [June 27, 2017, 6:06pm UTC](https://discuss.elastic.co/t/timestamp-preserve-6-digit-ms/91007/8 "2017-06-27T18:06:48Z")

</div>

There's probably a GitHub issue in the Elasticsearch project that covers higher resolution dates.

---

<div class="post-metadata">

**Author:** ![Hoffin\_Ag](https://avatars.discourse-cdn.com/v4/letter/h/ba8739/32.png) [@Hoffin\_Ag](https://discuss.elastic.co/u/Hoffin_Ag)\
**Post date:** [June 27, 2017, 6:08pm UTC](https://discuss.elastic.co/t/timestamp-preserve-6-digit-ms/91007/9 "2017-06-27T18:08:57Z")

</div>

ok sure i'll check it out. Thanks alot. 🙂

---

<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 25, 2017, 6:09pm UTC](https://discuss.elastic.co/t/timestamp-preserve-6-digit-ms/91007/10 "2017-07-25T18:09:01Z")

</div>

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