Retention for log files and audit logs
-
Is there a way to define the maximum retention on audit logs (the audit plugin in XOA) and the general XOA and XCP-ng application logs?
-
Hi,
That's 2 very different things. Ping @julien-f for audit logs (or @Bastien-Nollet if he's around). For XO logs, same people to ping. For XCP-ng log rotation, it's another completely different story. Have you took a look at https://docs.xcp-ng.org/guides/logs/#logrotate?
-
@olivierlambert thanks! Logrotate seems easy enough to understand and adjust if needed. It's the audit and XOA logs that I need help understanding.
-
Hi @Forza,
This is not possible at the moment. The XO log retention is set to 20,000 entries.
About audit logs, we have a task planned for the following months to try to add retention configuration. It's a bit complicated as deleting old audit logs interferes with audit log chain verification, so I don't think we can expect this feature to be released before a few months.
-
@Bastien-Nollet Thanks for checking. At least I know it is set to 20000 entries at the moment. Thank you.