65845c7531
* VAULT-1564 report in-flight requests * adding a changelog * Changing some variable names and fixing comments * minor style change * adding unauthenticated support for in-flight-req * adding documentation for the listener.profiling stanza * adding an atomic counter for the inflight requests addressing comments * addressing comments * logging completed requests * fixing a test * providing log_requests_info as a config option to determine at which level requests should be logged * removing a member and a method from the StatusHeaderResponseWriter struct * adding api docks * revert changes in NewHTTPResponseWriter * Fix logging invalid log_requests_info value * Addressing comments * Fixing a test * use an tomic value for logRequestsInfo, and moving the CreateClientID function to Core * fixing go.sum * minor refactoring * protecting InFlightRequests from data race * another try on fixing a data race * another try to fix a data race * addressing comments * fixing couple of tests * changing log_requests_info to log_requests_level * minor style change * fixing a test * removing the lock in InFlightRequests * use single-argument form for interface assertion * adding doc for the new configuration paramter * adding the new doc to the nav data file * minor fix
32 lines
1 KiB
Plaintext
32 lines
1 KiB
Plaintext
---
|
|
layout: docs
|
|
page_title: Log Completed Requests - Configuration
|
|
description: |-
|
|
Vault can be configured to log completed requests.
|
|
---
|
|
|
|
# Log Completed Requests
|
|
|
|
Vault can be configured to log completed requests using the `log_requests_level` configuration parameter.
|
|
|
|
## Activating the Log Completed Requests
|
|
|
|
By default, logging completed requests is disabled. To activate the requests 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`, and `trace`.
|
|
If the vault server is already running, you can still configure the parameter in the Vault server configuration,
|
|
and then send an `SIGHUP` signal to the vault process.
|
|
|
|
```hcl
|
|
log_requests_level = "trace"
|
|
|
|
listener "tcp" {
|
|
# ...
|
|
}
|
|
```
|
|
|
|
## Deactivating the Log Completed Requests
|
|
|
|
To deactivate logging completed requests, simply remove the `log_requests_level`
|
|
configuration parameter from the vault server configuration, and send a `SIGHUP` signal to the vault process.
|