---
title: "How to monitor a file whose name has characters between the date?"
description: "Monitoring files with date codes in filenames requires using the FKM plugin's date format patterns. The FKM plugin detects files daily by matching filenames with embedded date codes like y-m-d."
url: "https://docs.itrsgroup.com/docs/faq/geneos/115004022165-geneos-how-to-monitor-a-file-whose-name-has-characters-between-the-date/index.html"
---
**You can use the FKM plugin, with date codes invoked within the filename pattern.**

Suppose you have file that is created daily in which the filename pattern includes the current date. For example, the current date is September 16th, 2021 and a file was created with the name **Test\_File-y2021-m09-d16.log**and you want it detected daily.  ![Screenshot](https://docscdn.itrsgroup.com/faq/images/geneos/115004022165-inline-1-mceclip0.png)  You can use the the following date format code, **Test\_File-y<today %Y>-m<today %m>-d<today %d>.log**, as your Source filename.  ![Screenshot](https://docscdn.itrsgroup.com/faq/images/geneos/115004022165-inline-2-mceclip3.png)  Below is how the FKM view would look like:  ![Screenshot](https://docscdn.itrsgroup.com/faq/images/geneos/115004022165-inline-3-mceclip1.png)  Alternatively, you can do the same for <tomorrow> date codes. Using the same example as seen above, with the exception of applying the appropriate date code as seen below:  ![Screenshot](https://docscdn.itrsgroup.com/faq/images/geneos/115004022165-inline-4-mceclip2.png)  Attached is the "Date Format" sampler. Please note this sampler was set up on version GA5.9.0.

Related Articles  - [Date Generation](https://docs.itrsgroup.com/docs/geneos/current/collection/fkm-config/index.html#Date_generation)

## Related downloads

- [date_format_sampler.xml](/faq/downloads/geneos/115004022165-4407509302417-date_format_sampler.xml)


