Hi!
Yo can use File.Count parameter. Full syntax is following:
File.Count(path, pattern, recursive, size, age)
where
| path | path to directory or file to check |
| pattern | pattern for file name matching |
| recursive | recursion flag; if set to 1 or true, agent will scan subdirectories |
| size | size filter (bytes); if < 0, only files with size less than abs(value) will match; if > 0, only files with size greater than value will match; if 0, all files will match |
| age | age filter (seconds); if < 0, only files created after now - abs(value) will match; if > 0, only files created before now - value will match; if 0, all files will match |
path argument is mandatory, all other are optional.
So, to count number of .txt files older than 15 minutes in c:\tmp, you can use
File.Count('C:\tmp', '*.txt', 0, 0, 900)
And after that you just need to set threshold for this parameter to >0, generate appropriate event, and process it as usual.
Best regards,
Victor