FrankenTerm

Saved Searches and Scheduled Queries

129 words1 min read3 subsectionsFrom the README at ft 0.15.21

On this page3
CommandsWhy scheduled queriesSaved-search storage

ft search saved lets operators bookmark FTS queries and optionally schedule them to re-run periodically.

Commands

bash
ft search saved list                                    # list saved searches
ft search saved run <name>                              # run a saved search by name
ft search saved schedule <name> <interval_ms>           # enable + set interval (min 1000 ms)
ft search saved unschedule <name>                       # disable scheduling + clear interval
ft search saved enable <name>                           # re-enable an already-scheduled search
ft search saved disable <name>                          # stop scheduled execution without clearing config

Why scheduled queries

  • Polling-free alerting. A scheduled saved search can route results into the notification pipeline (e.g., "every 5 min, check for panic across all panes; alert if any match").
  • Auditable. Scheduled-search results are persisted as events with the search name attached.
  • Bounded cost. The minimum interval is 1000 ms; the search executes against the indexed FTS5 data so each run is bounded.

Saved-search storage

The saved_searches table holds: name, query string, optional pane filter, a since mode (last_run by default) with an optional since_ms, schedule interval, enabled flag, and the last run's time, result count and error. Saved searches run lexical queries; there is no per-search mode or until bound.