I want to retrieve queries for specific time ranges in Loki


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?