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
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 narrower than the word memory suggests.
The tail DB: an offset, stored in SQLite
The best-known state in Fluent Bit belongs to the tail input, which follows text files much like tail -f. An optional database file lets the plugin keep a history of tracked files and a state of offsets, so it can resume where it stopped if the service is restarted. That database is backed by SQLite, and its in_tail_files table can be inspected with a SQLite client.
Two details define how much memory this really is. First, the DB is optional. If the DB parameter is not specified, the documentation says the plugin will start reading each target file from the beginning, which means a restart without a DB replays the file instead of resuming it. Second, what the DB stores is a position: a file and a byte offset. It records how far reading progressed. It records nothing about what those lines meant, what a filter concluded, or what an output did with them.
The mechanics are careful. SQLite runs in Write Ahead Log mode, creating -wal and -shm side files alongside the database, and the DB.Sync parameter controls how the SQLite engine synchronizes to disk, with values such as Extra, Full, Normal, and Off, and Full as the default. A stronger sync setting protects the offset through a crash. It does not widen what is remembered. A perfectly durable offset is still only an offset.
Chunks: the buffer between input and output
Data in flight lives in a different kind of memory. When an input receives records, the engine groups them into chunks, and each chunk is stored in memory or on the filesystem before it is sent to an output destination. Buffering behavior follows the input's storage.type setting.
By default, buffering is memory only. The Mem_Buf_Limit parameter caps how much one input may hold, and when that limit is exceeded, the input pauses. Records that arrive while an input is paused can be lost, which is why memory buffering suits lighter workloads. Filesystem buffering changes the contract: with a storage.path set in the service section and storage.type filesystem on the input, buffered chunks are written to disk and survive a Fluent Bit restart. A limit such as storage.max_chunks_up, 128 by default, controls how many of those chunks are loaded up into memory at once.
Notice the unit again. A chunk holds records waiting for delivery. Filesystem storage remembers undelivered data through a restart, which is valuable, and the moment delivery succeeds, that memory has done its job and empties. Nothing in the chunk layer keeps a record of deliveries that already finished, let alone what they contained or what anyone decided about them.
The retry scheduler: memory measured in attempts
The third keeper is the scheduler that flushes chunks to outputs. When an output asks for a retry, the scheduler decides how long to wait before trying that chunk again. Retry behavior is configurable per output, and once the retry limit for a chunk is reached, the chunk is discarded.
That is a sensible design for a forwarder: hold data briefly, try again, and do not let one dead destination fill the disk forever. It also completes the picture of Fluent Bit memory. An offset remembers a position in a file. A chunk remembers records not yet delivered. A retry remembers an attempt not yet exhausted. Every one of those memories is about transport, and every one expires when transport succeeds or gives up.
Where the automation around Fluent Bit goes blind
Fluent Bit rarely works alone. Around it there is usually a scheduled chain: collect the logs, summarize what changed with an AI step, open or update a ticket, notify a channel, decide whether an anomaly deserves a page. Fluent Bit covers the collection part faithfully. The decision part usually restarts from zero.
An AI step reviewing tonight's errors receives tonight's records and a static prompt. It does not automatically receive last night's findings, the incident already explained, the noisy source already identified as harmless, or the correction an operator made after the last false alarm. Teams bridge that gap with runbooks, pinned messages, and prompt text someone has to remember to update. The bridge holds until a different tool runs the next step and cannot read any of it.
That is the line to draw clearly. A tail DB remembers where reading stopped. A buffer remembers what has not shipped yet. A scheduler remembers what still deserves another attempt. None of them gives a set of automations one shared memory that survives across runs and across tools.
One shared memory for the automations around Fluent Bit
That shared layer is what Vilix AI provides. Vilix AI is cloud-hosted with zero infrastructure to run, so an automation gains a memory without gaining another database, buffer, or state file to operate. The same memory is reachable everywhere over MCP, so the workflow that summarizes the night, the assistant that investigates it, and the agent that follows up can all read and write one context instead of three separate ones.
Vilix AI keeps full conversation history, not just extracted facts. For an automation operator that distinction is concrete: the exact wording of an earlier decision, the order in which a diagnosis changed, and the reason a source was marked harmless remain available to the next run, instead of being reduced to an offset that keeps only a position.
Getting started carries no commitment. Vilix AI offers a free plan forever and a 7-day Pro trial with no card required, and data can be exported or deleted at any time. A practical first step is small: have each run save its closing findings to Vilix AI, so the next run opens with them already loaded.
So, does Fluent Bit remember between runs? With a DB configured, it remembers where it stopped reading. With filesystem buffering, it remembers what it has not delivered yet. Everything an automation needs beyond transport still needs a home of its own. Give that home one address every tool can reach, and the next run stops starting blind.