VAULT-8732: Add log-file to Vault Agent (#17841)

* Started work on adding log-file support to Agent
* Allow log file to be picked up and appended
* Use NewLogFile everywhere
* Tried to pull out the config aggregation from Agent.Run

Co-authored-by: Nick Cabatoff <ncabatoff@hashicorp.com>
This commit is contained in:
Peter Wilson
2022-11-11 10:59:16 +00:00
committed by GitHub
parent a6e11bd170
commit 7ae65df94e
16 changed files with 634 additions and 89 deletions

View File

@@ -331,6 +331,10 @@ precedence over [#VAULT_LICENSE_PATH](#vault_license_path) and
[Enterprise, Server only] Specify a path to a license on disk to use for this node.
This takes precedence over [license_path in config](/docs/configuration#license_path).
### `VAULT_LOG_FILE`
(Agent only) If provided, specifies the full path to a log file Vault should use to write its logs.
### `VAULT_MAX_RETRIES`
Maximum number of retries when certain error codes are encountered. The default
@@ -434,4 +438,4 @@ list of available flags, run:
```shell-session
$ vault <subcommand> -h
```
```