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.
-
I would like to suggest to configure a remote syslog server.
it centralizes all the log s and give you full control over the retention.
It would also avoid situation where a disk full would impact your logging as well XCP-ng or XOA host operations.
For your XCP-NG host go to you POOl, select Advanced tab and configure the Remote syslog host section to point to your syslog server.
For XOA, you can follow the instruction here :
https://docs.xen-orchestra.com/backups#send-xo-logs-to-an-external-syslog-server
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login