How to use Regex for a rolling log file?
Is there any example available?
An example of a $FGLHOME/state/default/logs folder with rolling FglAM logs would look similar to this example:
FglAM_2012-03-26_160041_001.log
FglAM_2012-03-26_160041_002.log
Where the _002.log is the latest log being written.
The agent properites setup of the LogFilter agent would look similiar to this example:
Log-1 Path /apps/FglAm554/state/default/logs
Log-1 Check sub-directories? No
Log-1 File Name ^FglAM_20.*\.log$
Log-1 Rolling Enabled? Yes
This example monitors the most current FglAm log and would be good until the year 2099.
Please reference regex usage examples from our Infrastructure Guide.
© 2025 Quest Software Inc. ALL RIGHTS RESERVED. Terms of Use Privacy Cookie Preference Center