feat: file upload / POST ingest endpoint — accept log files for remote harvester #3

Closed
opened 2026-05-09 15:31:22 -07:00 by pyr0ball · 1 comment
Owner

Add POST /turnstone/api/ingest/upload accepting multipart file upload. Server saves to a temp staging area, auto-detects format via existing _detect_format, runs through the ingest pipeline, returns stats. Required for the Podman harvester agent (see companion ticket).

Add `POST /turnstone/api/ingest/upload` accepting multipart file upload. Server saves to a temp staging area, auto-detects format via existing `_detect_format`, runs through the ingest pipeline, returns stats. Required for the Podman harvester agent (see companion ticket).
pyr0ball added this to the (deleted) milestone 2026-05-09 15:31:22 -07:00
Author
Owner

File upload ingest: added POST /api/ingest/upload multipart endpoint to rest.py. Accepts a log file, saves to temp, calls ingest_file(), rebuilds FTS index in background, returns {source_id, ingested, stats}. Used by both the Sources UI and the harvester agent. 234 tests passing.

File upload ingest: added POST /api/ingest/upload multipart endpoint to rest.py. Accepts a log file, saves to temp, calls ingest_file(), rebuilds FTS index in background, returns {source_id, ingested, stats}. Used by both the Sources UI and the harvester agent. 234 tests passing.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Circuit-Forge/turnstone#3
No description provided.