Filebeat Input Dynamic file path

I have a requirement to monitor dynamic log path using Elastic.Log Path is as follows. Can you please help whats the file path I should be included in the filebeat.yml file ?

Log Name- C:\appname\data\logs\appname_a123-a1-001 Data Pipe New_12345678.log
here a123 is dynamic
Can you suggust how filebeat input should be ?

I tried this but did not work -' C:\appname\data\logs\appname_*'