Read modes
The file source supports three modes, each producing different batch types:Lines mode
Each line becomes a syslog message. Empty lines are skipped.JSONL mode
Parse each line as a JSON object and produce typed batches. Setformat to control the schema:
Log format
Event format
Additional fields are flattened into event properties.
Parse errors in JSONL mode are logged and skipped — a malformed line won’t stop the import.
Binary mode
Re-import data previously exported by the disk sink. Tell reconstructs the original batches with their metadata, including source IPs.One-shot vs continuous
By default, the file source reads the file once and exits (one_shot = true). Set one_shot = false to keep the source running after reading:
Configuration reference
The file source requires the
source-file feature flag at build time.What’s next
- Routing — control where file data goes after ingestion
- Transforms — parse and enrich raw lines before storage
- Disk sink — export data that binary mode can re-import