# Grail and timestamp support for milliseconds

**URL:** <https://community.dynatrace.com/t/grail-and-timestamp-support-for-milliseconds/40291>\
**Category:** Logs\
**Tags:** latest-dynatrace, logs\
**Created:** [June 20, 2023, 10:05am UTC](https://community.dynatrace.com/t/grail-and-timestamp-support-for-milliseconds/40291 "2023-06-20T10:05:11Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![GregOReilly](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/gregoreilly/32/41879_2.png) [@GregOReilly](https://community.dynatrace.com/u/GregOReilly)\
**Post date:** [June 20, 2023, 10:05am UTC](https://community.dynatrace.com/t/grail-and-timestamp-support-for-milliseconds/40291/1 "2023-06-20T10:05:11Z")

</div>

Before moving our existing environments to Grail, I’d like to know if it supports timestamps in milliseconds. Today’s Log Management only goes as far as seconds. Will Grail provide “millisecond” timestamp support?

---

<div class="post-metadata">

**Author:** ![marcin\_okraszew](https://avatars.discourse-cdn.com/v4/letter/m/35a633/32.png) [@marcin\_okraszew](https://community.dynatrace.com/u/marcin_okraszew)\
**Post date:** [June 20, 2023, 3:08pm UTC](https://community.dynatrace.com/t/grail-and-timestamp-support-for-milliseconds/40291/2 "2023-06-20T15:08:14Z")

</div>

Both Log Monitoring Classic and Logs on Grail supports have ms resolution of timestamps. Though, in both cases, the ms are not displayed in UI.

---

<div class="post-metadata">

**Author:** ![Philipp\_Kastner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/philipp_kastner/32/28797_2.png) [@Philipp\_Kastner](https://community.dynatrace.com/u/Philipp_Kastner)\
**Post date:** [June 21, 2023, 10:17am UTC](https://community.dynatrace.com/t/grail-and-timestamp-support-for-milliseconds/40291/3 "2023-06-21T10:17:02Z")

</div>

It’s possible to display the milliseconds in Notebooks by reformatting the timestamp.  
See - [formatTimestamp function](https://www.dynatrace.com/support/help/shortlink/dql-functions#formatTimestamp)

Example:

```javascript
fetch logs
| fieldsAdd timestamp = formatTimestamp(timestamp, format:"yyyy-MM-dd HH:mm:ss.SSS")
| limit 10

```

 ![Philipp_Kastner_0-1687342547660.png](https://global.discourse-cdn.com/dynatrace/original/2X/e/ec8721100dacc224ed7baec7602db8e9ace6e388.png)

Kind regards, Philipp

---

<div class="post-metadata">

**Author:** ![GregOReilly](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/gregoreilly/32/41879_2.png) [@GregOReilly](https://community.dynatrace.com/u/GregOReilly)\
**Post date:** [June 21, 2023, 11:44am UTC](https://community.dynatrace.com/t/grail-and-timestamp-support-for-milliseconds/40291/4 "2023-06-21T11:44:55Z")

</div>

Thanks. We dont have Grail yet, but the example above is confirming my hopes. Notebooks only work with Grail correct? I just tried to use a notebook (selecting the new ui) and this did not work with old log management. No results are ever returned.

---

<div class="post-metadata">

**Author:** ![Philipp\_Kastner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/philipp_kastner/32/28797_2.png) [@Philipp\_Kastner](https://community.dynatrace.com/u/Philipp_Kastner)\
**Post date:** [June 21, 2023, 2:41pm UTC](https://community.dynatrace.com/t/grail-and-timestamp-support-for-milliseconds/40291/5 "2023-06-21T14:41:22Z")

</div>

Correct, Notebooks only queries data from Grail.&nbsp;  
See&nbsp;[@HansLougas](https://community.dynatrace.com/user/45442)’s response regarding one way to get started 🙂&nbsp;[Solved: Re: Moving to Grail: pulling out all Log Management data - Dynatrace Community](https://community.dynatrace.com/post/215662)

---

<div class="post-metadata">

**Author:** ![pditmar2](https://avatars.discourse-cdn.com/v4/letter/p/8491ac/32.png) [@pditmar2](https://community.dynatrace.com/u/pditmar2)\
**Post date:** [April 14, 2025, 7:11pm UTC](https://community.dynatrace.com/t/grail-and-timestamp-support-for-milliseconds/40291/6 "2025-04-14T19:11:26Z")

</div>

Hi Philip,

Any way to add nanoseconds to the timestamp as well and use that for ordering?
