Can i make telegraf config file changeable please?

Dear Sir/Madam,

My simple config file has:

file(s) to tail:

files = ["/data/mnt2/haproxy-2018-04-17:12.log"]

As file name is based on current hour, I wish to make it like (BASH here):

file(s) to tail:

files = ["/data/mnt2/haproxy-$(date +%Y-%m-%d:%H).log"]

Is this possible please?
Thanks a lot in advance

This is not possible to do directly with Telegraf, but maybe you can setup a cron job that updates a symlink every day?

ln -s /data/mnt2/haproxy-$(date +%Y-%m-%d:%H).log /data/mnt2/
mv /data/mnt2/ /data/mnt2/haproxy-latest

thanks a lot for your help indeed