vault/website/content/docs/configuration/log-requests-level.mdx
Sarah Chavis 8f6e95f1a3
[DOCS] SEO updates for config docs (#29242)
* seo updates for config docs

* fix content errors

* Make KMS title consistent with other stanza titles
2024-12-19 19:21:33 -05:00

47 lines
1.4 KiB
Plaintext

---
layout: docs
page_title: Configure completed request logging
description: >-
Configure the logging level for completed requests in Vault.
---
# 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" {
# ...
}
```