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

Does Rsyslog Remember Between Runs? Its State Files Resume the Log. Nothing Resumes the Reasoning.

Does Rsyslog Remember Between Runs? Its State Files Resume the Log. Nothing Resumes the Reasoning. Rsyslog runs on millions of Linux hosts, collecting system logs and forwarding them to central stores. It restarts for package upgrades, configuration reloads, and host reboots, and each restart raises the same practical question: what does rsyslog still know when it comes back up? The documented answer has three parts. A file-reading position survives. Queued messages can survive, if the queue wa

Does Rsyslog Remember Between Runs? Its State Files Resume the Log. Nothing Resumes the Reasoning.

Rsyslog runs on millions of Linux hosts, collecting system logs and forwarding them to central stores. It restarts for package upgrades, configuration reloads, and host reboots, and each restart raises the same practical question: what does rsyslog still know when it comes back up? The documented answer has three parts. A file-reading position survives. Queued messages can survive, if the queue was built for it. Everything the daemon was thinking about, beyond positions and payloads, starts over.

The imfile state file: a bookmark, not a notebook

When rsyslog tails a text file through its imfile input module, it has to know which lines it already processed, or a restart would resend the whole file. That knowledge lives in state files, stored in the rsyslog working directory set by the global workDirectory parameter. When rsyslogd stops while monitoring a file, it records the last processed location, and on startup it reads the state file and continues from exactly that offset.

Two details decide whether the bookmark exists at all. The PersistStateInterval parameter must be set, otherwise state files are not created during processing; a value of 100, for example, writes the state after every 100 lines, so a crash loses at most the tail since the last write. And the working directory must be writable and must survive the restart. If the state file cannot be written, imfile has no record of what it already read, and the file content gets sent again in full. The state file holds an offset and file identity. It holds nothing about what the lines meant.

Queues: memory by default, disk only on request

Between inputs and outputs, rsyslog passes messages through queues: a main queue, plus optional queues on rulesets and individual actions. The default queues are in-memory structures, a linked list or fixed array held in RAM. They are fast, and they forget. A restart with messages still sitting in a plain memory queue drops those messages unless the shutdown is orderly and the queue was told to save itself.

Disk assistance changes that. Setting a queue filename turns on disk-assisted mode: the queue keeps working in memory for speed, spills to files in the spool directory when it grows past its high watermark, and writes its remaining contents to disk on shutdown when queue.saveOnShutdown is set to on. A pure disk queue goes further and stores everything on disk from the start, trading speed for durability, with queue.checkpointInterval and queue.syncqueuefiles controlling how often the on-disk state is made durable.

The reliability model is consistent throughout: a message leaves a queue only after the action that consumed it acknowledges processing. During a network outage, a disk-assisted forwarding queue grows on disk and replays when the destination returns. What rsyslog remembers across a restart, then, is a payload backlog and a set of read positions, both strictly mechanical.

What a restart clears without asking

Everything else resets. Rate-limiting counters start fresh. In-memory queue contents that were never spilled or saved are gone after an ungraceful stop; a sudden power loss can lose messages that a clean shutdown would have written out. Ruleset variables held in memory, statistics counters collected by the impstats module, and any partial processing state all begin again at zero. None of this is hidden behavior. Rsyslog is a transport and processing daemon, and its persistence is designed around one promise: do not lose or duplicate log lines beyond the configured tolerance. Meaning was never part of the contract.

The layer rsyslog was never asked to keep

Follow what that means for the systems now layered on top of logs. An AI agent watching a forwarded stream investigates an incident, rules out a failing disk, correlates an authentication spike with a deployment, and writes up a conclusion. Tomorrow the same agent starts a new run. Rsyslog faithfully delivers the new lines, resuming from the exact offset it saved. The agent, however, has no record of yesterday's investigation. It re-reads, re-correlates, and can easily re-chase a cause that was already ruled out, because the pipeline remembered the events and nothing remembered the reasoning.

That reasoning layer is a separate component, and it is what Vilix AI provides. Vilix AI is cloud-hosted, so there is zero infrastructure to provision or maintain: no spool directory to size, no state file to protect, no working directory to keep writable. Agents connect over MCP, the standard protocol, and every connected tool reads and writes the same memory, so a scheduled automation, a coding assistant, and a chat session all work from one shared state instead of private fragments.

The content also differs in kind. Vilix AI keeps full conversation history, not just extracted facts, so the next run inherits the reasoning, the dead ends, and the decisions, not only a distilled summary. An agent can check what was already investigated before repeating it, and a handoff between tools carries the context behind a conclusion, not just the conclusion.

Adoption carries no lock-in. Vilix AI offers a free plan that stays free forever, plus a 7-day Pro trial that needs no credit card. The memory stays under the user's control, with export and deletion available anytime.

So, does rsyslog remember between runs? Yes, precisely and mechanically: state files resume file reading at the saved offset, disk-assisted queues replay their backlog, and acknowledged messages are never silently dropped. Positions and payloads survive. Reasoning never enters the daemon at all. Keep rsyslog for the logs. Give the agents working on those logs a memory that keeps the decisions too.

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 Softr Remember Between Runs?

Does Softr Remember Between Runs? No. A Softr workflow or scheduled agent remembers nothing from one run to the next on its own. Inside a single run, workflow variables carry data from step to step, and an app agent remembers details about a user during that conversation. Between runs, the only things that survive are what you wrote into a database record, and the run log Softr keeps for you to read. What does a Softr workflow remember inside one run? Quite a lot, while the run is alive. Var

Does Promtail Remember Between Runs? Its Positions File Resumes the Log. Nothing Resumes the Reasoning.

Does Promtail Remember Between Runs? Its Positions File Resumes the Log. Nothing Resumes the Reasoning. Promtail is the agent that ships local logs to Grafana Loki. It tails files, reads the systemd journal, discovers container logs, runs each line through pipeline stages, and pushes batches to Loki. It also restarts constantly in real deployments: config reloads, package upgrades, container recreations, host reboots. So the practical question matters. What does Promtail still know when it come

Markdown Files Are Everyone's Agent Memory Now. Here's Where They Break.

Markdown Files Are Everyone's Agent Memory Now. Here's Where They Break. Ask a room of people who run coding agents how their agent remembers anything between sessions, and you will hear the same answer in different fonts. A CLAUDE.md. A PLAN.md. A notes file in the repo. Somebody always says some version of: it's just markdown, it works, why would I pay for anything else. They are not wrong. That is exactly why the pattern won. A text file needs no account, no API key, no migration. It sits i