How to rotate Webgateway-logs
While upgrading old Ensemble and Health Connect applications to V 2024.1 we are installing many webgateways since the private webserver is deprecated.
Configuring the "Default Parameters" we can determine the "Event Log Rotation Size" but not the count of preserved logfiles. So even if the webgateway cuts the logs in pieces they could fill up the disk space entirely for there seems to be no cleanup-job for old logfiles.
What is the recommended way to deal with this situation?
Do I have to create a schduled job on OS-level?
Using a Task in Health Connect would be difficult because Helath Connect wouldn't have the permission to do that.
Did I miss something in the docs?
Thanks for Ideas or recommendations!
Comments
The basic solution -- don't enable "Retain All Log Files". Then you would have only two log files -- current one, and old one which is replaced every time current log reaches its Log Rotation Size
For more complex strategies -- yes, use OS tools. E.g. logrotate in linux
Thank you Alexander, It's written in the docs Isee. We can have just two logs of a determined size or all. This will do for us.