# rpk redpanda admin config log-level set

> For the complete documentation index, see [llms.txt](https://docs.redpanda.com/llms.txt). Component-specific: [streaming-full.txt](https://docs.redpanda.com/streaming-full.txt)

---
title: rpk redpanda admin config log-level set
latest-redpanda-tag: v25.2.1
latest-console-tag: v3.7.3
latest-operator-version: v26.1.4
# EOL = End-of-Life (support lifecycle status)
page-is-nearing-eol: "true"
page-is-past-eol: "false"
page-eol-date: July 31, 2026
latest-connect-version: 4.93.0
docname: rpk/rpk-redpanda/rpk-redpanda-admin-config-log-level-set
page-component-name: streaming
page-version: "25.2"
page-component-version: "25.2"
page-component-title: Streaming
page-relative-src-path: rpk/rpk-redpanda/rpk-redpanda-admin-config-log-level-set.adoc
page-edit-url: https://github.com/redpanda-data/docs/edit/v/25.2/modules/reference/pages/rpk/rpk-redpanda/rpk-redpanda-admin-config-log-level-set.adoc
page-git-created-date: "2023-05-17"
page-git-modified-date: "2024-04-30"
support-status: nearing end-of-life
---

<!-- Source: https://docs.redpanda.com/streaming/25.2/reference/rpk/rpk-redpanda/rpk-redpanda-admin-config-log-level-set.md -->

> ❗ **IMPORTANT**
>
> This command is not supported on macOS, Windows.

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. To see all possible loggers, run the following command:

redpanda --help-loggers

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.

## [](#usage)Usage

```bash
rpk redpanda admin config log-level set [LOGGERS...] [flags]
```

## [](#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) (default 300). |
| -h, --help | - | Help for set. |
| --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) (default: "debug"). |
| --config | string | Redpanda or rpk config file; default search paths are /var/lib/redpanda/.config/rpk/rpk.yaml, $PWD/redpanda.yaml, and /etc/redpanda/redpanda.yaml. |
| -X, --config-opt | stringArray | Override rpk configuration settings. See rpk -X or execute rpk -X help for inline detail or rpk -X list for terser detail. |
| --profile | string | Profile to use. See rpk profile for more details. |
| -v, --verbose | - | Enable verbose logging. |