---
title: "FKM sampler using dynamic files that will match on all files in the last X days"
description: "The FKM sampler cannot dynamically monitor files based on a changing date range over the last X days. Instead, placing all files in one directory and using the Wildcard monitor all matches function allows monitoring all files there."
url: "https://docs.itrsgroup.com/docs/faq/geneos/13255998076573-geneos-fkm-sampler-using-dynamic-files-that-will-match-on-all-files-in-the-last-x-days/index.html"
---
It seems that achieving dynamic monitoring through the FKM might not be possible. Instead of monitoring only the latest file, a solution could involve placing all the files into a single directory. By doing this, you could utilize the 'Wildcard monitor all matches' function to monitor all files within that directory. However, it's worth noting that the FKM's dynamic file configuration allows you to set up file patterns using regular expressions, but it might not be sufficiently flexible to specify a changing date range, especially if the required date range varies daily.


