# rpk cluster loggers 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 cluster loggers set
latest-redpanda-tag: v26.2.1
latest-console-tag: v3.9.0
latest-operator-version: v26.2.1
# EOL = End-of-Life (support lifecycle status)
page-is-nearing-eol: "false"
page-is-past-eol: "false"
page-eol-date: July 28, 2027
latest-connect-version: 4.104.0
docname: rpk/rpk-cluster/rpk-cluster-loggers-set
page-component-name: streaming
page-version: "26.2"
page-component-version: "26.2"
page-component-title: Streaming
page-relative-src-path: rpk/rpk-cluster/rpk-cluster-loggers-set.adoc
page-edit-url: https://github.com/redpanda-data/docs/edit/main/modules/reference/pages/rpk/rpk-cluster/rpk-cluster-loggers-set.adoc
description: Set broker logger's log level. This command temporarily changes a broker logger's log level.
page-git-created-date: "2026-07-28"
page-git-modified-date: "2026-08-03"
support-status: supported
---

<!-- Source: https://docs.redpanda.com/streaming/current/reference/rpk/rpk-cluster/rpk-cluster-loggers-set.md -->

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.

Use `rpk cluster loggers list` to display available loggers.

> 📝 **NOTE**
>
> This command was introduced in version v26.2.1.

## [](#usage)Usage

```bash
rpk cluster loggers 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). |
| -l, --level | string | Log level to set (error, warn, info, debug, trace). |
| --node-id | int | Broker to apply the log level change on. |

## [](#global-flags)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. |