Logs: filter by level, component and time #455

Merged
jcoffey-dev merged 1 commits from feat/229-log-fields into main 2026-11-18 20:16:34 +00:00
Owner

Part of inbuxa/inbuxa-admin#229 (forum t/308): the server half of filtering the Logs page.

x:Log/query took only text. It now also takes:

  • level: the level picked and everything more severe (warn finds warnings and errors), like journalctl -p.
  • event: a component (smtp) or a whole event id (smtp.connection-start); smtp doesn't match smtps.*.
  • timestamp with IsGreaterThan(OrEqual) / IsLessThan(OrEqual), for a time range.

Files are read newest first, so the first entry older than the range ends the search. The Logs list in the packaged schema gets the filters (Level and above, Component, Text, Date), so the console's current list shows them too.

Not here: a JSON line format for the Log tracer (the issue's server note) — filed separately.

Checks: unit tests for each filter (incl. ANSI-coloured lines and smtp vs smtps), cargo fmt --check, every fork-checks script and its tests, release tool tests.

Part of inbuxa/inbuxa-admin#229 (forum t/308): the server half of filtering the Logs page. `x:Log/query` took only `text`. It now also takes: - `level`: the level picked and everything more severe (`warn` finds warnings and errors), like `journalctl -p`. - `event`: a component (`smtp`) or a whole event id (`smtp.connection-start`); `smtp` doesn't match `smtps.*`. - `timestamp` with `IsGreaterThan(OrEqual)` / `IsLessThan(OrEqual)`, for a time range. Files are read newest first, so the first entry older than the range ends the search. The Logs list in the packaged schema gets the filters (Level and above, Component, Text, Date), so the console's current list shows them too. Not here: a JSON line format for the Log tracer (the issue's server note) — filed separately. Checks: unit tests for each filter (incl. ANSI-coloured lines and smtp vs smtps), `cargo fmt --check`, every fork-checks script and its tests, release tool tests.
jcoffey-dev force-pushed feat/229-log-fields from ab88894127 to 084ae4e7bd 2026-11-18 20:01:48 +00:00 Compare
jcoffey-dev added 1 commit 2026-11-18 20:04:27 +00:00
Logs: filter by level, component and time
ci / fork-checks (pull_request) Skipped
ci / build (pull_request) Skipped
github/ci (branch) GitHub Actions
ci / github (pull_request) Successful in 11m46s
a3989450b7
x:Log/query took only a text filter. It now also takes:

- level: the level picked and everything more severe (warn finds warnings
  and errors), the way journalctl -p reads a priority;
- event: a component such as smtp, or a whole event id such as
  smtp.connection-start; smtp doesn't match smtps.*;
- timestamp, with the usual IsGreaterThan(OrEqual) / IsLessThan(OrEqual)
  forms, for a time range.

Files are read newest first, so the first entry older than the range ends
the search instead of reading every older file. The Logs list in the
packaged schema gets the new filters (Level and above, Component, Text,
Date). Part of inbuxa-admin #229.

Test: unit test for each filter, including ANSI-coloured lines and the
smtp/smtps prefix case.
jcoffey-dev force-pushed feat/229-log-fields from e8df7c412b to a3989450b7 2026-11-18 20:04:27 +00:00 Compare
jcoffey-dev merged commit c63fc84a3f into main 2026-11-18 20:16:34 +00:00
jcoffey-dev deleted branch feat/229-log-fields 2026-11-18 20:16:34 +00:00
Sign in to join this conversation.