# rpk group seek

> 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 group seek
latest-redpanda-tag: v26.1.14
latest-console-tag: v3.10.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: March 31, 2027
latest-connect-version: 4.105.0
docname: rpk/rpk-group/rpk-group-seek
page-component-name: streaming
page-version: "26.1"
page-component-version: "26.1"
page-component-title: Streaming
page-relative-src-path: rpk/rpk-group/rpk-group-seek.adoc
page-edit-url: https://github.com/redpanda-data/docs/edit/v/26.1/modules/reference/pages/rpk/rpk-group/rpk-group-seek.adoc
description: Modify a group's current offsets. This command allows you to modify a group's offsets.
page-git-created-date: "2023-05-17"
page-git-modified-date: "2026-07-17"
support-status: supported
---

<!-- Source: https://docs.redpanda.com/streaming/26.1/reference/rpk/rpk-group/rpk-group-seek.md -->

Modify a group’s current offsets.

This command allows you to modify a group’s offsets. Sometimes, you may need to rewind a group if you had a mistaken deploy, or fast-forward a group if it is falling behind.

The `--to` option allows you to seek to a specific offset, or to the start or end of partitions. The offset can be at any timestamp precision (seconds since epoch, millis since epoch, etc). The start and end options are self explanatory. If any partition is deleted and recreated (a la `rpk topic delete; rpk topic create`), the prior commits are wiped out and the group will be committed to the earliest offset (similar to if specifying start).

The `--to-group` option allows you to seek to commits that are in another group. This is a merging operation: if g1 is consuming topics A and B, and g2 is consuming only topic B, `rpk group seek g1 --to-group g2` will update g1’s commits for topic B only. The `--topics` flag can be used to further narrow which topics are updated. Unlike `--to`, all non-filtered topics are committed, even topics not yet being consumed, meaning `--allow-new-topics` is not needed.

The `--to-file` option allows to seek to offsets specified in a text file with the following format:

```text
<TOPIC> <PARTITION> <OFFSET>
<TOPIC> <PARTITION> <OFFSET>
...
```

Each line contains the topic, the partition, and the offset to seek to. As with the prior options, `--topics` allows filtering which topics are updated. Similar to `--to-group`, all non-filtered topics are committed, even topics not yet being consumed, meaning `--allow-new-topics` is not needed.

The `--to`, `--to-group`, and `--to-file` options are mutually exclusive. If you are not authorized to describe or read some topics used in a group, you will not be able to modify offsets for those topics.

## [](#usage)Usage

```bash
rpk group seek <group> --to (start|end|timestamp) --to-group ... --topics ... [flags]
```

## [](#examples)Examples

This section provides examples of how to use `rpk group seek`.

Seek group G to June 1st, 2021.

```bash
rpk group seek g --to 1622505600
```

or.

```bash
rpk group seek g --to 1622505600000
```

or.

```bash
rpk group seek g --to 1622505600000000000
```

Seek group X to the commits of group Y topic foo.

```bash
rpk group seek X --to-group Y --topics foo
```

Seek group G’s topics foo, bar, and biz to the end.

```bash
rpk group seek G --to end --topics foo,bar,biz
```

Seek group G to the beginning of a topic it was not previously consuming.

```bash
rpk group seek G --to start --topics foo --allow-new-topics
```

## [](#flags)Flags

| Value | Type | Description |
| --- | --- | --- |
| --allow-new-topics | bool | Allow seeking to new topics not currently consumed (implied with --to-group or --to-file). |
| --to | string | Target position to seek to. Use start (or beginning), end (or latest), a specific offset number, or a Unix timestamp prefixed with @ (for example, @1622505600). |
| --to-file | string | Path to a text file specifying offsets per partition. Each line must contain the topic, partition, and offset separated by a space or tab. |
| --to-group | string | Seek to the commits of another group. |
| --topics | stringSlice | Topics to seek. If not specified, seeks all topics the group has committed offsets for. |

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