Using regular expressions to monitor log files with dynamic names
You can use the PATROL KM for Log Management to monitor log files with dynamic names. The KM accepts regular expressions in file names with the exception of named pipes. For information about these wild card characters, see Creating-regular-expressions.
For example, if a log file is named backup_date.log, where date changes each day, enter the log file name as backup_*.log when setting up a log file for monitoring.
If you have configured the KM file in the Add-File-for-Label-instanceName-dialog-box to monitor the Latest files, it checks the dates on all of the files that match the file name, and only monitors the newest one.
If you have configured the KM file in the Add-File-for-Label-instanceName-dialog-box to monitor the All of the files that match the wildcard, it keeps monitoring all the files that match the file name.
Related topics