feat: add searchable event log history

This commit is contained in:
way
2026-09-27 13:42:58 +08:00
parent 97598a48ad
commit 13f6155096
4 changed files with 57 additions and 14 deletions
+2
View File
@@ -165,6 +165,8 @@ GET /api/v1/config
GET /api/v1/services
```
日志接口支持 `since`、`until` Unix 时间戳,`severity`、`event`、`search` 筛选,`timestamp` / `severity` / `event` / `message` 排序,以及 `limit` / `offset` 分页。Web 提供今天、昨天、本周、本月和全部快捷范围。日志直接读取 systemd journal 的现有保留数据,不建立重复的 SQLite 日志副本。
配置写入接口:
```text