diff --git a/doc/charts/globals.md b/doc/charts/globals.md index e0e5326e6a0cc5350f4e3b893b7e05a64c346623..b102dcd90a1bf1fd08cfde56f1d2e6f46df5044b 100644 --- a/doc/charts/globals.md +++ b/doc/charts/globals.md @@ -2512,8 +2512,15 @@ global: By default, the GitLab Helm chart does not rotate logs. This can cause ephemeral storage issues for containers that run for a long time. -To enable log rotation, set the `GITLAB_LOGGER_TRUNCATE_LOGS` environment variable to `true`. For more information, see -[GitLab Logger's documentation](https://gitlab.com/gitlab-org/cloud-native/gitlab-logger#configuration). In particular, +To enable log rotation, set the `GITLAB_LOGGER_TRUNCATE_LOGS` environment variable to `true`. When log rotation is enabled, additional environment variables like `GITLAB_LOGGER_TRUNCATE_INTERVAL` and `GITLAB_LOGGER_MAX_FILESIZE` can be configured to control the log rotation behavior. + +| Name | Type | Default | Description | +| :---------- | :------ | :------ | :---------- | +| `GITLAB_LOGGER_TRUNCATE_LOGS` | Boolean | `false` | When enabled, log files that exceed the size configured in `GITLAB_LOGGER_MAX_FILESIZE` will be truncated at the interval specified in `GITLAB_LOGGER_TRUNCATE_INTERVAL` | +| `GITLAB_LOGGER_TRUNCATE_INTERVAL` | Integer | `300` | This is the interval at which log files that exceed the size configured in `GITLAB_LOGGER_MAX_FILESIZE` will be truncated when `GITLAB_LOGGER_TRUNCATE_LOGS` is set to `true`. The interval is specified in seconds. | +| `GITLAB_LOGGER_MAX_FILESIZE` | Integer | `1000` | Log files that exceed this size will be truncated at the interval specified in `GITLAB_LOGGER_TRUNCATE_INTERVAL` when `GITLAB_LOGGER_TRUNCATE_LOGS` is set to `true`. This value is specified in bytes. | + +For more information, see [GitLab Logger's documentation](https://gitlab.com/gitlab-org/cloud-native/gitlab-logger#configuration). In particular, see information on: - [`GITLAB_LOGGER_TRUNCATE_INTERVAL`](https://gitlab.com/gitlab-org/cloud-native/gitlab-logger#truncate-logs-interval).