rpk redpanda admin config log-level set

Set broker logger’s log level.

This command temporarily changes a broker logger’s log level. Each Redpanda broker has many loggers, and each can be individually changed. Any change to a logger persists for a limited amount of time, so as to ensure you do not accidentally enable debug logging permanently.

It is optional to specify a logger; if you do not, this command will prompt from the set of available loggers.

The special logger all enables all loggers. Alternatively, you can specify many loggers at once.

This command accepts loggers that it does not know of to ensure you can independently update your Redpanda installations from rpk. The success or failure of enabling each logger is individually printed.

You can use --help-loggers to display available loggers:

rpk redpanda admin config log-level set --help-loggers [--host <HOST>]

Usage

rpk redpanda admin config log-level set <loggers...> [flags]

Flags

Value Type Description

-e, --expiry-seconds

int

Seconds to persist this log level override before Redpanda reverts to its previous settings (if 0, persist until shutdown).

--help-loggers

bool

Display the list of available loggers.

--host

string

Either a hostname or an index into rpk.admin_api.addresses config section to select the hosts to issue the request to.

-l, --level

string

Log level to set (error, warn, info, debug, trace).

Global flags

Value Type Description

--config

string

Redpanda or rpk config file; default search paths are ~/.config/rpk/rpk.yaml, $PWD/redpanda.yaml, and /etc/redpanda/redpanda.yaml.

-X, --config-opt

stringArray

Override rpk configuration settings; -X help for detail or -X list for terser detail.

--ignore-profile

bool

Ignore rpk.yaml and redpanda.yaml; use default settings.

--profile

string

rpk profile to use.

-v, --verbose

bool

Enable verbose logging.