Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update guides/logs 'xensource.log' specific config #301

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion docs/guides/logs.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/bellow/below/

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.
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.