Information
Unsupported content Version 2.7.41 of the product is in limited support, while versions 2.7.43 and 2.7.44 are fully supported. This documentation includes content for all versions. You will not be able to leave comments for version 2.7.41.

 

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

Selecting and configuring log files to monitor

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*

BMC PATROL for Log Management 2.7