Add today date in promtail __path__

Hello everyone,
I’d like to know if there is a way to add a date into promtail path configuration, something like:

path: “/usr/local/application/logs/*date +%F

Reason is that in that path I have all the logs with ie: app_xyz_2021-04-22
So I’d like promtail to read just the last file everyday
Thanks a lot

Hi everyone,

I am having the same issue, I can’t find a way to tell promtail to read only today’s logs when there is several files with the format filename.dateoflog.log such as file.2021-09-20.log, if I use asterisk it just takes all the files including the old ones and it is creating some issues for us.