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

Does Filebeat Remember Between Runs? Its Registry Resumes the File. Not the Findings.

Does Filebeat Remember Between Runs? Its Registry Resumes the File. Not the Findings. Yes, and the part it remembers is exactly the part a log shipper should. When Filebeat restarts, it rebuilds its picture of every file it was reading and continues each one at the last known position, instead of starting the file over or skipping the lines written while it was down. A routine restart does not turn into a flood of duplicates, and a crash does not quietly lose log lines. What it remembers is po

Does Filebeat Remember Between Runs? Its Registry Resumes the File. Not the Findings.

Yes, and the part it remembers is exactly the part a log shipper should. When Filebeat restarts, it rebuilds its picture of every file it was reading and continues each one at the last known position, instead of starting the file over or skipping the lines written while it was down. A routine restart does not turn into a flood of duplicates, and a crash does not quietly lose log lines.

What it remembers is position. It does not remember what anyone, or any AI step downstream, made of those lines. That split is easy to miss, because both feel like "memory" until a scheduled automation depends on the second kind and discovers only the first kind is there.

The registry: a bookmark for every file

Filebeat keeps the state of each file it finds and frequently flushes that state to disk in the registry file. The state records the last offset a harvester was reading from, which is the byte position up to which that file has been processed. While Filebeat runs, the same state also lives in memory for each input, so reading stays fast.

On restart, the registry is read back and the state is rebuilt from it. Each harvester resumes at its saved offset. Lines appended during the downtime are picked up, because the file grew past the stored offset, and lines already delivered are not sent again just because the process bounced.

Notice what kind of memory this is. It is a set of offsets attached to files. It answers one question with precision: where did reading stop? It says nothing about what the lines contained, which errors mattered, or what decision followed from them.

Identity: why a filename is not enough

Files get renamed and moved, especially under log rotation, so a path alone cannot identify what was already read. For each file, Filebeat stores unique identifiers and uses them to detect whether the file in front of it is one it harvested before. On Linux that has traditionally meant the inode and device; newer filestream inputs can identify a file by a fingerprint of its contents instead.

This is also where the known edge cases live. If an old file is deleted and a new file immediately reuses its inode, Filebeat can mistake the new file for the old one and try to continue at the old position. The documented response is housekeeping: options such as clean_inactive and clean_removed prune stale states from the registry, and ignore_older keeps very old files out of scope. A registry that is never cleaned also grows, because by default states are kept even for files that are long gone.

Acknowledgements: the offset only moves when delivery lands

The registry is tied to delivery, not just to reading. Filebeat guarantees at-least-once delivery: events are delivered to the configured output at least once, with no data loss. The mechanism behind that promise is that the delivery state of each event is stored, and the offset advances after the output acknowledges receipt.

The shutdown case shows why this matters. If Filebeat stops while events are in flight, it does not wait for every acknowledgement before exiting. Any event that was sent but not acknowledged before shutdown is sent again when Filebeat restarts. Duplicates are possible at that boundary; lost lines are not, and that trade is deliberate.

The same patience applies when the output is unreachable. If Elasticsearch or Logstash cannot be reached, Filebeat keeps track of the last lines sent and continues reading the files as soon as the output becomes available again. The pipeline bends around an outage instead of dropping its place in it.

Where the reasoning goes missing

Now put the pattern automation operators actually run on top of this. Logs flow in all day. A scheduled AI job wakes up at night, reads the new records, groups the failures, and drafts a summary of what broke and what looks new.

Filebeat serves that job well. The registry guarantees the job sees each line once, the acknowledgements guarantee the lines arrive, and rotation handling guarantees the trail survives the files being renamed underneath it.

Ask the second night's job what it knows, and the gap appears. It does not know that last night's run decided a burst of errors was a known noisy health check rather than an outage. It does not know a reviewer corrected that call, or that the summary promised to watch one endpoint again tonight. The lines were delivered faithfully. The conclusions drawn from them were never written anywhere the next run can read, because a shipper stores positions, not findings.

That gap is not a flaw in Filebeat. Remembering findings was never its job. The problem appears when a whole automation stack quietly assumes that because the data layer remembers, the reasoning layer does too, and every scheduled run starts re-deriving yesterday's conclusions from raw lines.

Give the reasoning a memory of its own

The fix is to add a memory layer where the reasoning happens, separate from the offset bookkeeping where the reading happens. That is the role Vilix AI is built for: a shared memory that scheduled agents read at the start of a run and write back to at the end, so conclusions persist the way offsets do.

Vilix AI is cloud-hosted with zero infrastructure to run: no server to deploy, no database to maintain, no registry file of your own to protect. The same memory is reachable from every tool and machine over MCP, so the nightly job, a different agent on another host, and an interactive session all read one shared state instead of separate local files. It keeps the full conversation history, not just extracted facts, so a run can see how a conclusion was reached and what was corrected along the way, not only the final claim.

The practical shape is simple. At the start of a run, the agent pulls the relevant memory: last night's grouping, the corrections, the open watch items. It does its work against the new lines Filebeat delivered. At the end, it writes the new findings back. The next run starts from those findings instead of from zero.

Vilix AI has a free plan that stays free forever, and a 7-day Pro trial that needs no card, so the pattern can be tested against a real scheduled job before anything is paid for. Memory can be exported or deleted at any time, so the record your agents build stays yours to move or remove.

Filebeat already proves the principle at the data layer: a small, durable record of where things stand makes every restart cheap and safe. Scheduled AI agents need the same courtesy at the reasoning layer. Keep the registry for positions. Add a memory for findings, and the second night's run finally starts where the first night's run left off. Start at vilix.ai.

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