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:
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.