mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-22 15:11:07 +02:00
* Update README Let contributors know that docs will now be located in UDR * Add comments to each mdx doc Comment has been added to all mdx docs that are not partials * chore: added changelog changelog check failure * wip: removed changelog * Fix content errors * Doc spacing * Update website/content/docs/deploy/kubernetes/vso/helm.mdx Co-authored-by: Tu Nguyen <im2nguyen@users.noreply.github.com> --------- Co-authored-by: jonathanfrappier <92055993+jonathanfrappier@users.noreply.github.com> Co-authored-by: Tu Nguyen <im2nguyen@users.noreply.github.com>
50 lines
1.9 KiB
Plaintext
50 lines
1.9 KiB
Plaintext
---
|
|
layout: docs
|
|
page_title: Configure completed request logging
|
|
description: >-
|
|
Configure the logging level for completed requests in Vault.
|
|
---
|
|
|
|
> [!IMPORTANT]
|
|
> **Documentation Update:** Product documentation, which were located in this repository under `/website`, are now located in [`hashicorp/web-unified-docs`](https://github.com/hashicorp/web-unified-docs), colocated with all other product documentation. Contributions to this content should be done in the `web-unified-docs` repo, and not this one. Changes made to `/website` content in this repo will not be reflected on the developer.hashicorp.com website.
|
|
|
|
# Configure completed request logging
|
|
|
|
Vault can be configured to log completed requests using the `log_requests_level` configuration parameter.
|
|
|
|
## Activating logging completed requests
|
|
|
|
By default, logging completed requests is disabled. To activate request logging, set the `log_requests_level`
|
|
configuration option in the Vault server configuration to the desired logging level. The acceptable logging levels are
|
|
`error`, `warn`, `info`, `debug`, `trace`, and `off`, which is the default.
|
|
|
|
Completed requests will be logged at the configured level, if Vault's log level includes this level of logs. For
|
|
example, if `log_level` is set to `debug`, but `log_requests_level` is set to `trace`, completed requests will
|
|
not be logged.
|
|
|
|
If the Vault server is already running, you can still configure the parameter in the Vault server configuration,
|
|
and then send a `SIGHUP` signal to the Vault process.
|
|
|
|
```hcl
|
|
log_requests_level = "debug"
|
|
log_level = "debug"
|
|
|
|
listener "tcp" {
|
|
# ...
|
|
}
|
|
```
|
|
|
|
## Deactivating logging completed requests
|
|
|
|
To deactivate logging completed requests, simply remove the `log_requests_level` configuration parameter
|
|
from the Vault server configuration, or set it to `off`, and send a `SIGHUP` signal to the Vault process.
|
|
|
|
```hcl
|
|
log_requests_level = "off"
|
|
log_level = "debug"
|
|
|
|
listener "tcp" {
|
|
# ...
|
|
}
|
|
```
|