RRD files

An RRD is the file format Rerun uses to persist recordings and blueprints. The first section shows how to inspect and change .rrd files with the rerun rrd command; the rest describes the format itself.

Work with .rrd files

The rerun rrd command can inspect and change .rrd files without writing any code. See the CLI reference for all options.

Most commands write to standard output unless you pass -o, so you can chain them with pipes.

Inspect a file

rerun rrd print my_recording.rrd    # what entities and components are in the file
rerun rrd stats my_recording.rrd    # sizes and chunk statistics
rerun rrd verify my_recording.rrd   # check that this version of Rerun can load the file

Migrate an old file

Rerun can load files from version 0.23 and newer, and migrates them when it loads them. To migrate a file on disk to the current version:

rerun rrd migrate my_recording.rrd

This writes the migrated file in place, and keeps the original as my_recording.backup.rrd. Files from before 0.23 can't be migrated.

Remove data

Drop entities or whole timelines:

rerun rrd filter --drop-entity /camera/image --drop-timeline log_tick my_recording.rrd -o smaller.rrd

--drop-entity matches the exact entity path only, not its children. Pass it once per entity.

Split a file

Split a recording into parts along a timeline, either at given times or into a number of equal parts:

rerun rrd split --timeline frame --time 1000 --time 2000 --output-dir ./parts my_recording.rrd
rerun rrd split --timeline frame --num-parts 4 --output-dir ./parts my_recording.rrd

Each part is a separate recording.

Compact a file

Many small chunks make a file slow to load and query. rerun rrd optimize merges them into fewer, larger chunks:

rerun rrd optimize my_recording.rrd -o my_recording_optimized.rrd

The output also has a footer, which the Viewer needs to load large files on demand. See Optimize chunk count and Open recordings larger than RAM.

Merge files

rerun rrd merge writes the contents of several files into one file:

rerun rrd merge part1.rrd part2.rrd -o merged.rrd

Each recording stays a separate recording in the output. Data from files that share the same application ID and recording ID ends up in the same recording.

To combine files with different IDs into a single recording, give them a common application ID and recording ID with rerun rrd route:

rerun rrd route --application-id my_app --recording-id my_recording part1.rrd part2.rrd -o combined.rrd

rerun rrd route does not decode the data, so it is fast, but it doesn't migrate or check the data either.

You can also open several files together without merging them: rerun part1.rrd part2.rrd. Files with the same application ID and recording ID are shown as one recording.

Append to a file, or rotate files

Rerun does not support appending to an existing .rrd file, or rotating files from the SDK. rr.save() and rr.FileSink overwrite the file if it already exists.

Workarounds:

  • Write a new file for each session or time span, with the same application ID and recording ID (the first argument and the recording_id argument of rr.init). Open them together, or combine them with rerun rrd merge. See Shared recordings.
  • To rotate files, stop logging to one file and start a new one with rr.save() (or rr.set_sinks) on the same recording.

Watch a file while it is written

The Viewer does not follow (tail) a file that is still being written. To watch the data live and also save it, send it to both the Viewer and a file:

rr.set_sinks(rr.GrpcSink(), rr.FileSink("my_recording.rrd"))

See Sinks.

Alternatively, stream to standard output and pipe it to the Viewer, which reads from standard input:

python my_script.py | rerun -

Your script needs to call rr.stdout() for this.

File format

At the lowest level an RRD is a linear sequence of framed messages — store announcements and chunks of data — optionally followed by a footer index that makes random access cheap. This section covers the envelope around chunks and how they are serialized; the chunk data model itself is described in Chunks.

Stores

Logical groupings of chunks form so-called stores. They come in two flavors: recording and blueprint. Both are structurally identical and distinguished only by a flag (store kind).

A single RRD can hold any number of stores. The file extension is either .rrd or .rbl. Both refer to the exact same on-disk format and are used conventionally:

  • .rrd files hold any combination of recording and blueprint stores;
  • .rbl files hold a single blueprint store.

Message kinds (LogMsg)

The body of an RRD is a sequence of LogMsgs. There are three variants:

  • SetStoreInfo announces a new store and carries its StoreInfo. It must appear before any data for that store. There can be more than one SetStoreInfo for the same store in a single stream — for example, when a RecordingStream is created and later attached to a FileSink — and the latest one wins.
  • ArrowMsg carries the actual data: an Apache Arrow IPC payload encoding a single chunk, tagged with the StoreId it belongs to. This is what makes up the bulk of every RRD.
  • BlueprintActivationCommand is the only non-data control message. It is emitted after a blueprint's chunks have been sent, and lets the producer atomically activate the blueprint via the make_active / make_default flags. It exists so that the Viewer never sees a half-loaded blueprint, and so the application can decide whether to apply the blueprint as the current one or the default.

Chunks (ArrowMsg payload)

Every ArrowMsg carries a single chunk — an Apache Arrow RecordBatch with Rerun-specific schema metadata. A chunk belongs to one entity path and holds a contiguous run of rows for that entity, with one column per timeline and one column per component. See Chunks for the conceptual deep-dive (how chunks are built, batched, sorted, compacted); this section just shows what a chunk looks like when you crack one open.

The schema is laid out per Sorbet, Rerun's object-model spec — it defines how chunks, archetypes, components, and timelines map onto Arrow column names, types, and metadata. The easiest way to see it concretely is to save a recording and reopen it with RrdReader.

First, let's create an RRD file with some content:

with rr.RecordingStream(
    "rerun_example_rrd_format", recording_id="example"
) as rec:
    rec.save(output_path)
    rec.set_time("frame", sequence=0)
    rec.log(
        "/points",
        rr.Points3D(
            [[0.0, 0.0, 0.0], [1.0, 1.0, 1.0]],
            colors=[(255, 0, 0), (0, 255, 0)],
        ),
    )
    rec.set_time("frame", sequence=1)
    rec.log("/points", rr.Points3D([[2.0, 2.0, 2.0]], colors=[(0, 0, 255)]))

Then we can inspect the first chunk it contains:

from rerun.chunk import RrdReader

reader = RrdReader(output_path)
for chunk in reader.stream():
    if chunk.entity_path == "/points":
        print(chunk.format(trim_metadata_keys=False))
        break

This prints a chunk together with its schema. A typical output looks like:

┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ METADATA:                                                                                                                                                                                            │
│ * rerun:entity_path: /points                                                                                                                                                                         │
│ * rerun:id: chunk_18B0AA9FA7B7B1A61d23c55ca87b18b4                                                                                                                                                   │
│ * sorbet:version: 0.1.3                                                                                                                                                                              │
├╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┤
│ ┌─────────────────────────────────────┬─────────────────────────┬────────────────────────────┬────────────────────────────┬──────────────────────────────────┬─────────────────────────────────────┐ │
│ │ RowId                               ┆ frame                   ┆ log_tick                   ┆ log_time                   ┆ Points3D:colors                  ┆ Points3D:positions                  │ │
│ │ ---                                 ┆ ---                     ┆ ---                        ┆ ---                        ┆ ---                              ┆ ---                                 │ │
│ │ type: non-null FixedSizeBinary(16)  ┆ type: Int64             ┆ type: Int64                ┆ type: Timestamp(ns)        ┆ type: List(UInt32)               ┆ type: List(FixedSizeList(3 x        │ │
│ │ ARROW:extension:metadata:           ┆ rerun:index_name: frame ┆ rerun:index_name: log_tick ┆ rerun:index_name: log_time ┆ rerun:archetype: Points3D        ┆ non-null Float32))                  │ │
│ │ {"namespace":"row"}                 ┆ rerun:is_sorted: true   ┆ rerun:is_sorted: true      ┆ rerun:is_sorted: true      ┆ rerun:component: Points3D:colors ┆ rerun:archetype: Points3D           │ │
│ │ ARROW:extension:name: TUID          ┆ rerun:kind: index       ┆ rerun:kind: index          ┆ rerun:kind: index          ┆ rerun:component_type: Color      ┆ rerun:component: Points3D:positions │ │
│ │ rerun:is_sorted: true               ┆                         ┆                            ┆                            ┆ rerun:kind: data                 ┆ rerun:component_type: Position3D    │ │
│ │ rerun:kind: control                 ┆                         ┆                            ┆                            ┆                                  ┆ rerun:kind: data                    │ │
│ ╞═════════════════════════════════════╪═════════════════════════╪════════════════════════════╪════════════════════════════╪══════════════════════════════════╪═════════════════════════════════════╡ │
│ │ row_18B0AA9FA79D51886952b7c6bb9f6ed ┆ 0                       ┆ 0                          ┆ 2026-05-18T13:04:15.500740 ┆ [4278190335, 16711935]           ┆ [[0.0, 0.0, 0.0], [1.0, 1.0, 1.0]]  │ │
│ │ 4                                   ┆                         ┆                            ┆                            ┆                                  ┆                                     │ │
│ ├╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┤ │
│ │ row_18B0AA9FA7B6D7E06952b7c6bb9f6ed ┆ 1                       ┆ 1                          ┆ 2026-05-18T13:04:15.501658 ┆ [65535]                          ┆ [[2.0, 2.0, 2.0]]                   │ │
│ │ 5                                   ┆                         ┆                            ┆                            ┆                                  ┆                                     │ │
│ └─────────────────────────────────────┴─────────────────────────┴────────────────────────────┴────────────────────────────┴──────────────────────────────────┴─────────────────────────────────────┘ │
└──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘

What to notice:

  • All Rerun-specific metadata keys are prefixed with rerun: (rerun:entity_path, rerun:id, rerun:kind, rerun:index_name, …). Sorbet's own metadata uses the sorbet: prefix (sorbet:version).
  • The chunk-level metadata identifies the entity path the chunk belongs to and the chunk's id.
  • The RowId column is the row identity column (rerun:kind: control).
  • Each timeline contributes one index column (frame, log_tick, log_time) — log_time is auto-populated by the logging API (and log_tick if opted in), frame is the user-defined timeline.
  • Each component contributes one data column (Points3D:colors, Points3D:positions) carrying the per-row values.

Store metadata (StoreInfo)

Every store in an RRD is identified by a StoreId and described by a StoreInfo:

  • StoreId combines:
    • kind — Recording or Blueprint. The on-disk format treats both identically; the kind is just a flag. What differs is the expected content: recordings hold user-logged data on user-defined entity paths, blueprints hold rr.blueprint.* objects on Viewer-reserved paths. The Viewer dispatches on the kind — recordings populate the chunk store, blueprints populate the Viewer's UI/layout state.
    • application_id — a user-chosen identifier for the application that produced the recording (see Recordings for the conventions, including the relationship with segment and dataset IDs in the remote/catalog context).
    • recording_id — a UUID or user-chosen string that distinguishes runs of the same application (Rerun DB servers use this as the segment ID by default — see the catalog object model).
  • StoreInfo wraps the StoreId and adds:
    • store_source — where the store came from (PythonSdk, RustSdk, CSdk (used by the C and C++ SDKs), or a file source such as CLI / drag-drop).
    • store_version — the Rerun version that produced the data.

Matching application_id and recording_id is how the Viewer merges multiple .rrd files (or multiple stores within one file) into a single logical recording.

.rbl is just an RRD whose store happens to have kind = Blueprint — nothing in the bytes makes it special. The convention of using .rbl for blueprints instead of .rrd is purely a filename hint to the Viewer and users.

When an RRD holds multiple stores each store begins with its own SetStoreInfo, and every subsequent ArrowMsg is tagged with its store's StoreId. Messages from different stores may be interleaved or grouped. The footer indexes each store separately, so readers can enumerate stores and select the ones they want without scanning chunk bytes.

The footer is an optional manifest appended at the end of an RRD that enables random access into the file. For each chunk in the RRD, the manifest carries chunk-level metadata (id, byte offset in the file, byte size — compressed and uncompressed) along with per-component and per-timeline statistics and the chunk's schema hash. Like all data in Rerun, the manifest is internally stored as an Arrow RecordBatch, with one row per chunk.

With the footer, a reader can enumerate stores in a handful of seeks and pull only the chunks it actually needs — for example, by entity path or by time range — without reading any chunk it does not care about. This is what enables RrdReader to be cheap to use on large files, and Rerun DB Local to "load" large datasets quickly and with little memory overhead.

All tooling included in recent versions of the Rerun SDK emits footers by default. An RRD may still miss a footer for a variety of reasons — for example, when a stream is not shut down cleanly, or legacy RRDs written before footers existed. In those cases, readers fall back to a linear scan, which is semantically equivalent — just slower for partial reads.

For illustration, let's see what a footer looks like in an RRD. This can be done with the following command:

rerun rrd print --footers --footers-lod 2 my.rrd

--footers-lod 2 prints the entire manifest, which is very wide. Here is an abridged version of the result for the recording produced by the snippet above, with the manifest shown as a table and most of its columns left out:

StoreInfo { store_id: StoreId(Recording, "rerun_example_rrd_format", "example"), … }
Chunk(chunk_18B0AA9F967A41276952b7c6bb9f6ed2) with 1 rows (632 B) - /__properties - data columns: [RecordingInfo:start_time]
Chunk(chunk_18B0AA9FA7B7B1A61d23c55ca87b18b4) with 2 rows (1.2 KiB) - /points - data columns: [Points3D:colors Points3D:positions]
chunk_entity_pathchunk_idchunk_is_staticchunk_num_rowschunk_byte_offsetchunk_byte_sizechunk_byte_size_uncompressedframe:startframe:endframe:Points3D:positions:num_rows…
/__properties18b0aa9f…true12409861736nullnull0…
/points18b0aa9f…false2124215643656012…

The first lines decode the SetStoreInfo messages and the ArrowMsg payloads found in the stream. The table is the manifest itself, with one row per chunk. The chunk-level columns (entity path, id, static flag, row count, byte span, uncompressed size) are followed by per-component and per-timeline statistics — global timeline ranges (frame:start/end, log_tick:*, log_time:*) and per-component-per-timeline statistics (frame:Points3D:positions:start/end/num_rows, …) — that let an indexed reader skip components within a timeline range without reading their payloads.

File layout

This section gives a byte-level walkthrough of the framing. All multibyte integers are little-endian.

The high-level shape of any RRD is:

┌─────────────────────────────────────────────────────────┐
│ StreamHeader                                  12 bytes  │
├─────────────────────────────────────────────────────────┤
│ Message₁  :  MessageHeader (16 B) + payload (N₁ B)      │
│ Message₂  :  MessageHeader (16 B) + payload (N₂ B)      │
│ …                                                       │
├─────────────────────────────────────────────────────────┤
│ End msg   :  MessageHeader (16 B) + RrdFooter payload   │  ┐
│                                                         │  │ optional
│ StreamFooter                          32 bytes (typ.)   │  │ footer
└─────────────────────────────────────────────────────────┘  ┘

The three building blocks are detailed below.

Stream header

Every RRD opens with the same fixed 12 bytes:

            StreamHeader — 12 bytes
┌────────────┬────────────┬─────────────────────┐
│   FourCC   │  Version   │   EncodingOptions   │
│  4 bytes   │  4 bytes   │       4 bytes       │
└────────────┴────────────┴─────────────────────┘
0            4            8                    12
offsetfieldvalue
[0..4)FourCCb"RRF2" for the current format
[4..8)Version4-byte encoded Rerun crate version
[8]compression0 = Off, 1 = LZ4 (the writer's request, see below)
[9]serializer2 = Protobuf (1 once meant MsgPack and is now rejected)
[10..12)reserved0x00 0x00
  • Older "RRF0" / "RRF1" FourCCs are recognized but rejected with OldRrdVersion — there is no in-place reader for them, you have to migrate through an older Rerun release.
  • The historical bit-pattern [0, 0, 0, 0] for Version is interpreted as 0.2.0 (pre-2023-02-27 files); any encoded version older than 0.23 is rejected outright.
  • EncodingOptions describes how the payloads of subsequent messages are encoded. In practice these flags are mostly advisory today — the values that matter ride alongside each individual message — but the bytes are still part of the format and the two reserved bytes must be zero.

Message framing

After the header, the file is a sequence of framed messages. Each message is a 16-byte header followed by an opaque payload:

                MessageHeader — 16 bytes
┌───────────────────────────┬───────────────────────────┐
│           kind            │       payload_len         │
│          u64 LE           │          u64 LE           │
└───────────────────────────┴───────────────────────────┘
0                           8                          16

╔════════════════════════════════╗
║   payload — payload_len bytes  ║
║   protobuf                     ║
╚════════════════════════════════╝
offsetfieldvalue
[0..8)kindMessageKind discriminant (see table below)
[8..16)payload_lenbyte length of the protobuf payload that follows

The kind field tells the decoder how to interpret the payload:

ValueMessageKindPayload
0EndAn RrdFooter protobuf (the optional footer — see below)
1SetStoreInfoA SetStoreInfo protobuf (announces a store)
2ArrowMsgAn ArrowMsg protobuf wrapping a chunk's Arrow IPC bytes (optionally LZ4-compressed)
3BlueprintActivationCommandA BlueprintActivationCommand protobuf

The outer payload bytes are always plain protobuf. Of the four kinds, only ArrowMsg can carry compressed data: its compression field tracks whether the wrapped Arrow IPC bytes are LZ4-compressed, so different ArrowMsgs in the same file can mix compressed and uncompressed Arrow IPC payloads. The compression byte in the StreamHeader's EncodingOptions is advisory only — per-message decoding does not consult it. A writer that was asked for LZ4 only keeps it where it saves at least 10% of the bytes, so chunks that do not compress, such as video samples, are stored as plain Arrow IPC and can be read without a decompression pass.

The footer is written in two parts.

The first part is a regular framed message: an End-kind MessageHeader followed by the RrdFooter protobuf payload described in the Footer section. It lives somewhere in the message stream — usually right before the file is closed — and is no different from any other framed message structurally.

The second part is the StreamFooter trailer at EOF. It is not a framed message: it is a raw structure whose job is to let readers jump straight to the RrdFooter(s) from the end of the file. The trailer is a variable-length entry table — one 20-byte StreamFooterEntry per RrdFooter in the stream — followed by a fixed 12-byte tail that always sits at the very end of the file:

StreamFooter = num_entries × StreamFooterEntry + 12-byte static tail

┌──────────────────────────────────────────────┬─────────────────────────┐
│ entries[0..num_entries) — 20·num_entries B   │   static tail — 12 B    │
└──────────────────────────────────────────────┴─────────────────────────┘
EOF − 12 − 20·num_entries                      EOF − 12                EOF

Each StreamFooterEntry is 20 bytes:

offsetfieldvalue
[0..8)startu64 LE — byte offset of the RrdFooter payload (after its own MessageHeader)
[8..16)lenu64 LE — length of the RrdFooter payload
[16..20)crc32u32 LE — xxh32(payload) with the fixed seed 7850921 ("RERUN" in base-26)

The static tail is the part with a known offset from EOF:

offset (from EOF)fieldvalue
[-12..-8)FourCCb"RRF2"
[-8..-4)identifierb"FOOT"
[-4..0)num_entriesu32 LE — number of entries above

The CRC only covers the RrdFooter payload, not the surrounding MessageHeader, so it can be checked independently of message framing.

Reading the footer therefore boils down to:

1. seek EOF − 12                     → read FourCC, identifier, num_entries
2. seek EOF − 12 − 20·num_entries    → read num_entries entries
3. for each entry:
       seek entry.start, read entry.len bytes
       check xxh32(bytes, seed=7850921) == entry.crc32
       decode protobuf RrdFooter

A file can legally have more than one trailer — that happens when streams are simply concatenated (cat a.rrd b.rrd > both.rrd), but tools like rerun rrd merge collapse them back into a single trailer with a single entry. Files written without a footer (streaming sinks, legacy producers) skip the End message and the trailer entirely; readers detect their absence by the missing FOOT identifier and fall back to a linear scan.

Stability

RRD files written by Rerun 0.23 or later load in every newer Rerun version, which migrates them when it loads them. The reverse is not guaranteed: an older Viewer may not be able to read a file written by a newer SDK. Data logged with types whose reference page marks them unstable may not be read the same way by newer versions. See A stable file format for the announcement.

The format is split into two layers with different stability stories.

Binary format

This concerns the binary structure of the RRD file. The framing described in File layout is considered stable and we have no plans to change it. Legacy RRDs whose Version field is older than 0.23 are currently rejected. That's the cut-off below which we do not attempt to migrate at load time; a manual hop through an older Rerun SDK release is required. The same is true for RRDs whose FourCC is RRF0 or RRF1.

Should we need to break framing compatibility again, the FourCC will bump (RRF3, …) and load-time auto-migration will be provided. The rerun rrd migrate CLI will also be available for offline batch conversion.

Sorbet

We refer to the high-level data model specification as Sorbet. Its reference implementation lives in the Rust re_sorbet crate. This includes the chunk and footer schemas, as well as the high-level data model (timelines, archetypes, components, etc. — see Entities and Components).

Sorbet is versioned and subject to change, but re_sorbet performs in-memory migration to the current Sorbet version as chunks (and the footer manifest) are loaded. Any CLI tool that rewrites an RRD (rerun rrd merge, rerun rrd optimize, rerun rrd migrate, …) emits chunks in the current Sorbet version, so a round-trip through any of these is also a migration. Future changes to Sorbet will be auto-migrated in the same way.