# Fetch logs from timestamp with filters

**URL:** <https://community.dynatrace.com/t/fetch-logs-from-timestamp-with-filters/44526>\
**Category:** DQL\
**Tags:** dql, dashboards, logs\
**Created:** [March 8, 2024, 11:04am UTC](https://community.dynatrace.com/t/fetch-logs-from-timestamp-with-filters/44526 "2024-03-08T11:04:30Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![AlexisGND](https://avatars.discourse-cdn.com/v4/letter/a/e19adc/32.png) [@AlexisGND](https://community.dynatrace.com/u/AlexisGND)\
**Post date:** [March 11, 2024, 10:31am UTC](https://community.dynatrace.com/t/fetch-logs-from-timestamp-with-filters/44526/3 "2024-03-11T10:31:12Z")

</div>

**At the end, it worked with the concat :**

fetch logs, from: toTimestamp(concat($Year, “-”, $Month, “-”, $Day, “T00:00:00.000Z”)), to: toTimestamp(concat($Year, “-”, $Month, “-”, $Day, “T23:59:59.000Z”))

I don’t possess enough technical knowledge of dql for using casting function and I think it’s not adapted with my situation, maybe I am wrong.

But the end result is what I wanted.  
Thanks for your idea, I will work on the casting function, see if it’s more optimized or not.

---

_[View the full topic](https://community.dynatrace.com/t/fetch-logs-from-timestamp-with-filters/44526)._
