Monitoring different file extensions
Posted: Fri Sep 04, 2020 3:53 am
I would like to monitor different file extensions in log file or stale file monitoring.
Right now we can monitor only one file extension like *.txt but if if i wish to monitor 2 file extension like *.txt & *.csv at same path/location, then there is no provision to achieve that.
Example-
check_files! -a path='C:\temp\Stale\' pattern=*.txt max-depth=1 'critical=count>0' 'empty-state=OK' 'filter=written < -5m' top-syntax='${count} File/s Found'
Any suggestion?
Right now we can monitor only one file extension like *.txt but if if i wish to monitor 2 file extension like *.txt & *.csv at same path/location, then there is no provision to achieve that.
Example-
check_files! -a path='C:\temp\Stale\' pattern=*.txt max-depth=1 'critical=count>0' 'empty-state=OK' 'filter=written < -5m' top-syntax='${count} File/s Found'
Any suggestion?