From 66f468ecef48eec4b5a5cf18aa48ed84cbd6c3f8 Mon Sep 17 00:00:00 2001 From: Cyril Christin <55538276+cyrilchristin@users.noreply.github.com> Date: Thu, 12 Dec 2024 04:44:38 +0100 Subject: [PATCH] Update guides/logs 'xensource.log' specific config - Added TIP information regarding changes to specific log rotation configuration for 'xensource.log' - Checkout upstream 'xen-api' pull #5507 / CA-389496 Signed-off-by: Cyril Christin <55538276+cyrilchristin@users.noreply.github.com> --- docs/guides/logs.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/guides/logs.md b/docs/guides/logs.md index 006a502c..c8623d65 100644 --- a/docs/guides/logs.md +++ b/docs/guides/logs.md @@ -24,7 +24,13 @@ Because a file must be rotated if a log exceeds 100 MiB, the `rsyslog` daemon is ## Specific config: `xensource.log` +:::tip No longer applicable since update released in June 2024 for XCP-ng 8.2 LTS. + +The `xensource.log` file is still rotated but the `config+script+cron` files mentioned bellow are deleted during this update process. +It is now part of the normal log rotation, with its configuration moved to `/etc/logrotate.d/xapi` (and without the cron task). +::: + `xensource.log` has many particular and different configuration parameters, so another `logrotate` config is used: `/etc/xensource/xapi-logrotate.conf` in a shell script `/opt/xensource/libexec/xapi-logrotate.sh` that executes `logrotate` with this specific config. There is normally no need to run it manually, a cron task `/etc/cron.d/xapi-logrotate.cron` is present to schedule it each hour. -The goal of this special config is to keep the `xensource.log` files for one month, and to limit the number of log files to 100. \ No newline at end of file +The goal of this special config is to keep the `xensource.log` files for one month, and to limit the number of log files to 100.