Free forever, no credit card.Get Started for Free →
← All posts
December 3, 2026 · 6 min read

Does Logstash Remember Between Runs? Its Sincedb Tracks Offsets. Not Findings.

Does Logstash Remember Between Runs? Its Sincedb Tracks Offsets. Not Findings. Yes, in a narrow and well-engineered way. Logstash remembers between runs mainly through the file input's sincedb: a small text file that records how far each watched file has been read, so a restart picks up where the last run stopped instead of re-reading everything or skipping what arrived while Logstash was down. A persistent queue and a dead letter queue can add two more kinds of on-disk state. All three remembe

Does Logstash Remember Between Runs? Its Sincedb Tracks Offsets. Not Findings.

Yes, in a narrow and well-engineered way. Logstash remembers between runs mainly through the file input's sincedb: a small text file that records how far each watched file has been read, so a restart picks up where the last run stopped instead of re-reading everything or skipping what arrived while Logstash was down. A persistent queue and a dead letter queue can add two more kinds of on-disk state. All three remember position or events in transit. None of them remembers what an AI step in the pipeline concluded about those events.

That distinction matters more as pipelines change. Logstash pipelines increasingly do more than parse and forward: they classify log lines, enrich events, flag anomalies and summarize incidents. The sincedb carries the offset. Nothing carries the findings.

What the sincedb actually stores

The file input plugin keeps track of the current position in each file by recording it in a separate file named sincedb. Elastic's documentation puts the purpose plainly: this makes it possible to stop and restart Logstash and have it pick up where it left off, without missing the lines added to the file while Logstash was stopped.

A sincedb file is a plain text file with four columns: the inode number of the file, the major device number of the filesystem, the minor device number, and the current byte offset within the file. In other words, the entire memory is a set of pointers: this file, on this device, read up to this byte.

The plugin holds that map in memory while it runs, writes it to disk at the interval set by sincedb_write_interval, and writes it again on shutdown. Rotation by rename or copy is handled, because identity is tracked by inode and device, not pathname alone.

The settings that decide whether position survives

Two settings control this memory, and misunderstanding them causes most of the confusion around restarts.

start_position decides where a newly seen file begins. Its default is end, meaning a new file is tailed from its current end and its existing content is skipped. Setting it to beginning reads a new file from the first byte. Crucially, start_position only applies to files with no sincedb entry. Once a position exists, the sincedb wins, and changing start_position to beginning does not rewind the file.

sincedb_path decides where the position map is persisted. Each file input needs a different sincedb_path; sharing one path between inputs causes the records to override each other. Pointing sincedb_path at /dev/null on Unix, or NUL on Windows, discards the map on shutdown, so the next start treats every file as new. That is a useful testing trick and a reliable way to lose position in production if it is left in place.

Two more stores: the persistent queue and the dead letter queue

Beyond input position, Logstash offers two resiliency features, and both are disabled by default.

The persistent queue stores events in an internal queue on disk instead of in memory. It protects events already read but not yet delivered when Logstash terminates abnormally, and it absorbs bursts while an output is slow. Its total capacity is set by queue.max_bytes, which defaults to 1024mb. It remembers events in transit, not conclusions about them.

The dead letter queue is on-disk storage for events Logstash is unable to process, for example events an output rejects. Those events can later be reprocessed with the dead_letter_queue input plugin. It remembers failures as raw events, with no record of what anyone decided to do about the pattern behind them.

Other stateful inputs follow the same pattern. The JDBC input, for example, tracks its place with a last_run_metadata_path file that records the last value used for incremental polling. Position again, in a different file.

What none of these stores can hold

Every store described above answers a positional question: which byte, which event, which row value was reached last? None of them has a place for a conclusion.

Consider a pipeline where an AI step now reviews parsed events: it groups related errors, decides which cluster is a real incident, notes that one service's failures started after a deploy, and records that a human reviewer dismissed a similar cluster yesterday as expected maintenance noise. The sincedb faithfully reports that the log file has been read to byte 281500. The persistent queue holds whatever events are in flight. Neither holds the grouping, the deploy correlation, or the reviewer's dismissal.

The next restart resumes in exactly the right place in the file and exactly the wrong place in the work. New events are read correctly, and the reasoning about the events already processed has to be rebuilt from the output index, if it can be reconstructed at all. The same clusters get re-flagged, the same explanations get rewritten, and the reviewer's decision is rediscovered the hard way.

There is also a sharing boundary. A sincedb belongs to one file input on one Logstash host. The analyst working in a chat tool, and the n8n or Make automation that should act on an incident, cannot read it and share none of the pipeline's working context. Knowledge moves between those places only when a person carries it.

The missing layer is shared agent memory

The pattern that fills this gap is a memory layer that lives outside any single tool and is shared by all of them. Vilix AI is built for that role. It is cloud-hosted, so there is zero infrastructure to run: no extra state file, queue directory or tracking table to provision and protect. Pipelines, automations and chat tools connect over MCP, the standard protocol AI tools use to reach external data, and all of them read and write the same memory.

Two properties separate it from a checkpoint. First, it stores full conversation history, not just extracted facts or positional values, so the reasoning behind a classification or an incident call stays available in its original context. Second, the memory is the same everywhere: a finding saved during the night's processing can be read the next morning by the automation routing the follow-ups and by the person reviewing them in chat, with no export step in between.

Vilix AI has a free plan that stays free forever, plus a 7-day Pro trial that needs no card. Everything stored can be exported or deleted at any time.

How the two memories fit together

Keep the sincedb on a real persistent path for what it does best: never re-reading lines already delivered, and always resuming a file at the right byte. Enable the persistent queue where losing in-flight events would hurt, and the dead letter queue where rejected events need a second chance. Add a shared memory layer for the part none of them was designed to hold: what the AI steps in the pipeline found, decided and learned while processing those events.

A pipeline that remembers both ways stops repeating itself. The sincedb proves where the reading stopped. The memory explains what it meant, so the next run begins from the last conclusions instead of a blank prompt.

Get Started for Free

Persistent memory across ChatGPT, Claude, and the AI tools you already use in Vilix AI.

Get Started for Free

Free forever, no credit card.

Keep reading
Does Cribl Stream Remember Between Runs? The Persistent Queue Survives on Disk. The Aggregation Starts Over.

Does Cribl Stream Remember Between Runs? The Persistent Queue Survives on Disk. The Aggregation Starts Over. Cribl Stream sits in front of logs, metrics, and traces, routing and shaping events before they reach a destination. Workers restart for configuration changes, upgrades, and rescheduling, so the question that decides whether data survives is exact: what does Cribl Stream still hold after a restart, and what does it rebuild from zero? The documented answer splits cleanly. Events already w

Does Grafana Alloy Remember Between Runs? A Positions File and a WAL Hold the Data. Nothing Holds the Decisions.

Does Grafana Alloy Remember Between Runs? A Positions File and a WAL Hold the Data. Nothing Holds the Decisions. Grafana Alloy is the telemetry collector that replaced Grafana Agent: one process, built from components wired into pipelines, collecting metrics, logs, traces, and profiles and forwarding them to wherever they belong. It restarts constantly in real deployments, for config reloads, upgrades, and pod rescheduling. So the practical question is precise: when Alloy comes back, what does

Does Fluent Bit Remember Between Runs? A SQLite File Holds the Offset. Nothing Holds the Reasoning.

Does Fluent Bit Remember Between Runs? A SQLite File Holds the Offset. Nothing Holds the Reasoning. Fluent Bit is the small telemetry agent that sits on hosts and in clusters, tailing log files, receiving metrics and traces, and forwarding everything onward. It is built to be lightweight and to keep moving. When the process restarts for a deploy, a config reload, or a node rebuild, a precise question follows: what did it actually keep? The answer is well documented, genuinely useful, and much n