Using the latest CSV file in a folder for live telegraf input

I have a program that creates unique filenames based on the time created. Is there a way for telegraf to get the latest file, not depending on the name, and use that one to input to influxdb?

Just name in [[inputs.file]] the file name with* e.g. files = [“C:/Data/*.csv”]

1 Like