Read events, logs, or raw lines from a file and push them into Tell’s pipeline. Use this for one-time imports, replaying exported data, or ingesting log files from disk.Documentation Index
Fetch the complete documentation index at: https://docs.tell.rs/llms.txt
Use this file to discover all available pages before exploring further.
Read modes
The file source supports three modes, each producing different batch types:| Mode | Output | Use case |
|---|---|---|
lines | Syslog batches | Raw log files, one line per message |
jsonl | Log or Event batches | Structured JSON — one JSON object per line |
binary | Original batches | Re-import data previously exported by the disk sink |
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
| Field | Type | Required | Description |
|---|---|---|---|
message | string | Yes | Log message text. |
level | string | No | debug, info, warn, error. Default: info. |
timestamp | integer | No | Unix milliseconds. Default: current time. |
source | string | No | Source location (e.g., app.js:42). |
service | string | No | Service name. Falls back to config service value. |
session_id | string | No | Session UUID. |
type | string | No | Log type. Default: log. |
data | object | No | Additional properties merged into the payload. |
Event format
| Field | Type | Required | Description |
|---|---|---|---|
type | string | Yes | Event type. |
device_id | string | Yes | Device UUID. |
event | string | No | Event name. |
session_id | string | No | Session UUID. |
user_id | string | No | User identifier. |
group_id | string | No | Group identifier. |
timestamp | integer | No | Unix milliseconds. Default: current time. |
service | string | No | Service name. |
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