turnstone/patterns/sources.yaml
pyr0ball a37ec559aa feat: journald export + system failure patterns
- Add scripts/export_journal.sh — dumps recent journal (priority 0-5,
  20min window) to /opt/turnstone/data/journal-export.jsonl; idempotent
  via entry_id deduplication so overlap is safe
- Add system-journal source to sources.yaml pointing at the export file
- Add 9 system-level patterns to default.yaml:
  systemd_fail, oom_kill, disk_hw_error, fs_error, kernel_error,
  ssh_brute, container_crash, smart_error, nfs_error
2026-05-11 06:54:42 -07:00

52 lines
2.2 KiB
YAML

# Turnstone log sources — edit this file to add or remove services.
# NOTE: the system-journal entry requires export_journal.sh to run on the HOST
# before the container ingest step. See crontab setup instructions in the README.
# Run ingest manually:
# sudo podman exec turnstone python scripts/ingest_corpus.py \
# --sources /patterns/sources.yaml --db /data/turnstone.db
#
# Paths here are container-side paths under the /opt bind mount.
# Missing paths are skipped with a warning — safe to leave entries for
# services that are temporarily down.
sources:
# ── System journal (exported by export_journal.sh on the host) ────────────
- id: system-journal
path: /data/journal-export.jsonl
# ── Download ─────────────────────────────────────────────────────────────
- id: qbittorrent
path: /opt/qbittorrent/config/data/logs/qbittorrent.log
# ── Servarr stack ─────────────────────────────────────────────────────────
- id: sonarr
path: /opt/sonarr/config/logs/sonarr.0.txt
- id: radarr
path: /opt/radarr/config/logs/radarr.0.txt
- id: lidarr
path: /opt/lidarr/config/logs/Lidarr.0.txt
- id: readarr
path: /opt/readarr/config/logs/readarr.0.txt
- id: whisparr
path: /opt/whisparr/config/logs/whisparr.0.txt
- id: prowlarr
path: /opt/prowlarr/config/logs/prowlarr.0.txt
- id: bazarr
path: /opt/bazarr/config/log/bazarr.log
# ── Usenet ────────────────────────────────────────────────────────────────
- id: nzbget
path: /opt/nzbget/config/nzbget.log
# ── Media / Requests ─────────────────────────────────────────────────────
- id: tautulli
path: /opt/tautulli/config/logs/tautulli.log
- id: jellyseerr
path: /opt/jellyseerr/config/logs/jellyseerr.log