# Get Start Timestamp based on Log Correlation Id in Dynatrace Grail

**URL:** <https://community.dynatrace.com/t/get-start-timestamp-based-on-log-correlation-id-in-dynatrace-grail/49514>\
**Category:** DQL\
**Tags:** dql, logs\
**Created:** [December 30, 2024, 10:45am UTC](https://community.dynatrace.com/t/get-start-timestamp-based-on-log-correlation-id-in-dynatrace-grail/49514 "2024-12-30T10:45:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![KeerthanaH](https://avatars.discourse-cdn.com/v4/letter/k/71c47a/32.png) [@KeerthanaH](https://community.dynatrace.com/u/KeerthanaH)\
**Post date:** [December 30, 2024, 10:45am UTC](https://community.dynatrace.com/t/get-start-timestamp-based-on-log-correlation-id-in-dynatrace-grail/49514/1 "2024-12-30T10:45:42Z")

</div>

I have requirement to get the start timestamp from the logs based on a particular correlation Id in the Grail.

Could you please suggest on this

---

<div class="post-metadata">

**Author:** ![krzysztof\_hoja](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/krzysztof_hoja/32/34625_2.png) [@krzysztof\_hoja](https://community.dynatrace.com/u/krzysztof_hoja)\
**Post date:** [December 30, 2024, 7:06pm UTC](https://community.dynatrace.com/t/get-start-timestamp-based-on-log-correlation-id-in-dynatrace-grail/49514/2 "2024-12-30T19:06:56Z")

</div>

If you are looking for earliest (and maybe latest too) timestamp of log line with particular correlation in, it could look like this:

```markup
| summarize { start_time=min(timestamp), end_time=max(timestamp)}, by: {corrleation_id}

```

but I may be incorrectly interpreting your need.

Example on test data looks like this:

 ![krzysztof_hoja_0-1735585589043.png](https://global.discourse-cdn.com/dynatrace/original/2X/3/3c065254fc582ef4536cf8fb12281d189c36af3c.png)
