Docs Self-Managed Troubleshoot Debug Bundles Configure Linux Configure Debug Bundle Management in Linux Learn how to configure debug bundle retention and storage in Linux environments. These configuration options apply only when you trigger a debug bundle remotely. For example using Redpanda Console, rpk debug remote-bundle, or the Admin API. They do not apply to the rpk debug bundle command. Automatically remove debug bundles To avoid manually deleting debug bundles, you can configure the debug_bundle_auto_removal_seconds property. This cluster configuration property automatically deletes debug bundles after the specified number of seconds. By default, this property is not set, meaning debug bundles are retained indefinitely. Only one debug bundle can exist at a time. If you generate a new debug bundle, any existing bundle from a previous run will be automatically deleted. Changes to this property take effect immediately and do not require a cluster restart. To set this property, use the rpk cluster config command: rpk cluster config set debug_bundle_auto_removal_seconds <seconds> For example, to retain debug bundles for 1 day: rpk cluster config set debug_bundle_auto_removal_seconds 86400 Choose where the debug bundle is saved The debug_bundle_storage_dir property allows you to specify a custom directory for storing debug bundles on the broker. By default, debug bundles are stored in the Redpanda data directory. Configuring a custom storage directory can help manage storage capacity and isolate debug data from operational data. Changes to this property take effect immediately and do not require a cluster restart. Before you change this property: Ensure that your chosen directory has sufficient storage capacity to handle debug bundles. Factors such as the volume of logs can increase the bundle size. While it is difficult to define an exact storage requirement due to variability in bundle size, 200 MB should be sufficient for most cases. Verify the directory’s permissions to ensure Redpanda can write to it. By default, Redpanda operates as the redpanda user within the redpanda group. To set a custom debug bundle storage directory, use the rpk cluster config command: rpk cluster config set debug_bundle_storage_dir <path-to-directory> For example, to store debug bundles in /var/log/redpanda/debug_bundles: rpk cluster config set debug_bundle_storage_dir /var/log/redpanda/debug_bundles Back to top × Simple online edits For simple changes, such as fixing a typo, you can edit the content directly on GitHub. Edit on GitHub Or, open an issue to let us know about something that you want us to change. Open an issue Contribution guide For extensive content updates, or if you prefer to work locally, read our contribution guide . Was this helpful? thumb_up thumb_down group Ask in the community mail Share your feedback group_add Make a contribution Configure Kubernetes