Expand description
Persisted tail positions, so a daemon restart resumes where it left off.
Without this the forwarder would have to choose between re-reading whole files on every start (duplicating everything) and starting at the end (losing everything written while the daemon was down). The acceptance criterion for V2-1021 is explicitly neither, so positions are written to disk and reloaded.
Positions are keyed by absolute log file path. ant-node rotates daily by filename
(ant-node.2026-08-19.log), so a new day is a new key rather than a moved cursor, and the
retention limit eventually deletes old ones — hence OffsetStore::prune.
Structs§
- File
Offset - Bytes of a log file that have been read and emitted.
- Offset
Store - Tail positions for every log file being followed.