Skip to content

Commit

Permalink
backport of commit ba832de (#19212)
Browse files Browse the repository at this point in the history
Co-authored-by: Peter Wilson <peter.wilson@hashicorp.com>
  • Loading branch information
1 parent 48a7feb commit 0490c4c
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions website/content/docs/agent/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -155,22 +155,18 @@ See the [caching](/vault/docs/agent/caching#api) page for details on the cache A
file path of `/var/log/vault-agent-{timestamp}.log`. `log-file` can be combined with
[`-log-rotate-bytes`](#_log_rotate_bytes) and [`-log-rotate-duration`](#_log_rotate_duration)
for a fine-grained log rotation experience.
This can also be specified via the `VAULT_LOG_FILE` environment variable.

- `-log-rotate-bytes` ((#\_log_rotate_bytes)) - to specify the number of
bytes that should be written to a log before it needs to be rotated. Unless specified,
there is no limit to the number of bytes that can be written to a log file.
This can also be specified via the `VAULT_LOG_ROTATE_BYTES` environment variable.

- `-log-rotate-duration` ((#\_log_rotate_duration)) - to specify the maximum
duration a log should be written to before it needs to be rotated. Must be a duration
value such as 30s. Defaults to 24h.
This can also be specified via the `VAULT_LOG_ROTATE_DURATION` environment variable.

- `-log-rotate-max-files` ((#\_log_rotate_max_files)) - to specify the maximum
number of older log file archives to keep. Defaults to `0` (no files are ever deleted).
Set to `-1` to discard old log files when a new one is created.
This can also be specified via the `VAULT_LOG_ROTATE_MAX_FILES` environment variable.

### Configuration File Options

Expand Down

0 comments on commit 0490c4c

Please sign in to comment.