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
1 Commits
Author SHA1 Message Date
jcoffey-dev a3989450b7 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
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.
2026-11-18 13:04:23 -07:00