Missing feature: Automatic cleaning Job DispatchLogs

Job DispatchLog records increase every time a job is executed, similar to audit logs. Could this eventually saturate the database table?

Does Liferay provide a configuration to automatically remove old logs or limit their growth?

Hello @Moozo,

By default, Liferay does not provide any out-of-the-box configuration to delete older logs. However, log rotation can be implemented at the environment level based on your requirements (for example, rotation based on file size, daily rotation, and so on).

For reference, please check the following articles:

https://learn.liferay.com/kb-article/logs-rotation-based-on-size-in-liferay-dxp-7.4

https://learn.liferay.com/kb-article/how-to-rotate-liferay-logs-per-day

Best,
Pooja