Log completed requests
OpenBao 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 OpenBao 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 OpenBao'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 OpenBao server is already running, you can still configure the parameter in the OpenBao server configuration,
and then send a SIGHUP
signal to the OpenBao process.
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 OpenBao server configuration, or set it to off
, and send a SIGHUP
signal to the OpenBao process.
log_requests_level = "off"
log_level = "debug"
listener "tcp" {
# ...
}