Rotate log based on size and schedule using variables in path and filename
Hi all,
I can...
- rotate log files based on size.
- rotate log files based on size using event fields- such as $Hostname from Syslog
- rotate log files based on size and schedule.
I CANNOT rotate log files based on size and schedule using event fields ! It seems that the Schedule component does not like references to fields.
At end of tether, please help.
ERROR invalid om_file keyword: $newfilepath
Thanks in advance. Paul
The <Schedule> block is not triggered/evaluated in the context of an event record, thus you cannot use fields there. You should use module variables instead.