turnstone/scripts
pyr0ball 688224840a fix(glean): add timeout=30s to all pipeline DB connections; add --force flag; new patterns
pipeline.py:
- Add timeout=30.0 to all sqlite3.connect() calls (5 total).
  Previously only ensure_context_schema() had it. The main glean
  writers would fail immediately under lock contention from the live
  watcher or concurrent manual glean runs.

glean_corpus.py:
- Add --force flag (passed through to glean_sources/glean_file/glean_dir).
  Without it, unchanged-fingerprint files were silently skipped even
  after pattern updates. Use after editing patterns/default.yaml.

patterns/default.yaml:
- Add 9 new patterns for Muninn / cluster-wide coverage:
    vpn_tunnel_fail     WireGuard/tunnel service failures
    vpn_handshake       WireGuard peer handshake events
    dns_degraded        systemd-resolved DNS fallback/degradation
    nvidia_api_mismatch NVIDIA kernel module vs userspace mismatch
    nvidia_xid          NVIDIA Xid GPU hardware faults
    nvidia_gpu_reset    NVIDIA GPU reset / NVLink faults
    acpi_error          ACPI firmware _DSM evaluation failures
    thermal_throttle    CPU/GPU thermal throttling / RAPL unavailable
    undervoltage        PSU undervoltage / brownout events
- Sync from /devl/turnstone-cluster/patterns/default.yaml (authoritative
  live copy updated first; repo copy was stale)
2026-05-26 22:36:45 -07:00
..
build_fts_index.py refactor: rename ingest → glean throughout codebase 2026-05-20 23:02:55 -07:00
collect_cluster_logs.sh fix(cluster): add Muninn to SSH collection, fix ingest_corpus → glean_corpus rename 2026-05-26 17:02:53 -07:00
docker-cluster.sh fix: correct cf-orch port to 7700; fix relative time parsing in diagnose; fix syslog PRI prefix 2026-05-13 05:33:41 -07:00
export_corpus.py feat: periodic corpus export — push ERROR/CRITICAL entries and incidents to Avocet 2026-05-11 17:08:35 -07:00
export_journal.sh refactor: rename ingest → glean throughout codebase 2026-05-20 23:02:55 -07:00
glean_corpus.py fix(glean): add timeout=30s to all pipeline DB connections; add --force flag; new patterns 2026-05-26 22:36:45 -07:00
syslog_receiver.py feat: add UDP syslog receiver for network device log collection 2026-05-13 04:58:51 -07:00
turnstone-cluster-collect.service fix: run collect service as alan user; call ingest directly without Docker 2026-05-13 05:17:43 -07:00
turnstone-cluster-collect.timer refactor: use live watcher + systemd timer instead of cron for cluster ingest 2026-05-13 04:55:25 -07:00
turnstone-cluster.service feat: source-scoped diagnose; multi-node Docker log collection 2026-05-13 08:10:42 -07:00
turnstone-syslog-receiver.service feat: add UDP syslog receiver for network device log collection 2026-05-13 04:58:51 -07:00
update.sh chore: add update.sh deploy script; gitignore patterns/watch.yaml 2026-05-11 16:07:07 -07:00
watch_plex.py feat: plex EAE watchdog and plex_eae_failure pattern 2026-05-08 13:41:34 -07:00