# I want to retrieve queries for specific time ranges in Loki

**URL:** <https://community.grafana.com/t/i-want-to-retrieve-queries-for-specific-time-ranges-in-loki/116969>\
**Category:** Grafana Loki\
**Tags:** query-help\
**Created:** [March 14, 2024, 6:53am UTC](https://community.grafana.com/t/i-want-to-retrieve-queries-for-specific-time-ranges-in-loki/116969 "2024-03-14T06:53:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jr4](https://avatars.discourse-cdn.com/v4/letter/j/f6c823/32.png) [@jr4](https://community.grafana.com/u/jr4)\
**Post date:** [March 14, 2024, 6:53am UTC](https://community.grafana.com/t/i-want-to-retrieve-queries-for-specific-time-ranges-in-loki/116969/1 "2024-03-14T06:53:31Z")

</div>

Hello,

I’d like to analyze logs on a monthly basis using Loki.  
For example, I want to extract logs for the entire month of January and only view logs after 18:00 on specific dates,  
ex) 2024.01.01 from 18:00 to 23:59, 2024.01.02 from 18:00 to 23:59, …  
How can I implement this?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/grafana/original/2X/e/ef5308cc58c9e5a13187b5012eb99f406928462f.png) [@system](https://community.grafana.com/u/system)\
**Post date:** [March 14, 2025, 6:53am UTC](https://community.grafana.com/t/i-want-to-retrieve-queries-for-specific-time-ranges-in-loki/116969/2 "2025-03-14T06:53:51Z")

</div>

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