title: Start and end parameters in query label_values ​(filename) loki
body: <p>I am setting up a logs grafana dashboard, and I would like to dynamically load the files that are generated in the logs directory into the dashboard selection variable via loki datasource.</p>
  <p>I can load, but only log files that undergo modification are loaded.</p>
  <p>After 1 day no longer appear.</p>
  <hr />
  <p>26/11</p>
  <p><a href="https://i.stack.imgur.com/CE7BG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CE7BG.png" alt="Input dashboard" /></a></p>
  <p>27/11</p>
  <p><a href="https://i.stack.imgur.com/EYFWl.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/EYFWl.png" alt="enter image description here" /></a></p>
  <hr />
  <p>Know that api <code>loki/api/v1/label/filename</code> has the parameters
  <code>start</code> <code>end</code></p>
  <p><a href="https://grafana.com/docs/loki/latest/api/#get-lokiapiv1labels" rel="nofollow noreferrer">Loki API Documentation</a></p>
  <p>Consulting the api, I have the expected results</p>
  <p><a href="https://i.stack.imgur.com/d54FO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/d54FO.png" alt="enter image description here" /></a></p>
  <p>How can I pass these parameters in the query <code>label_values(filename)</code>?</p>
  <p><a href="https://i.stack.imgur.com/KnjwX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/KnjwX.png" alt="enter image description here" /></a></p>
  <p>I've tried <code>label_values({start: 1603506254000000000, end: 1607506254000000000}, filename)</code>, but it didn't work.</p>
  <p><a href="https://i.stack.imgur.com/V7xIP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/V7xIP.png" alt="enter image description here" /></a></p>
  <p>Would I have a way to spend an initial and final period, so that I could see all the files for the current month?</p>
  <hr />
  <p>UPDATE:</p>
  <p>I forwarded the question to github grafana / loki and it looks like an implementation that will be done in the future. <a href="https://github.com/grafana/loki/issues/3011" rel="nofollow noreferrer">https://github.com/grafana/loki/issues/3011</a></p>