Copies a PC's Windows event logs to the NAS as a rolling window, the archive names the only state (from at-home-tools, AHT-258)
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Nelson d5fd56bda1
All checks were successful
Suite release / build (none, ubuntu-latest) (ubuntu-latest, none) (push) Has been skipped
Suite release / publish (push) Has been skipped
Suite release / reserve (push) Has been skipped
Suite release / check-manifest (push) Has been skipped
Suite release / deploy-image (push) Has been skipped
Suite release / check-package (push) Has been skipped
Suite release / deliver (push) Has been skipped
Suite release / deliver-prune (push) Has been skipped
Suite release / scope (push) Successful in 21s
Suite release / check-build (none, ubuntu-latest) (ubuntu-latest, none) (push) Has been skipped
Suite release / reused-checks (push) Has been skipped
Suite release / finalize (push) Has been skipped
Suite release / module (push) Successful in 1m5s
Take Go dependencies (#2)
2026-11-30 17:06:13 -08:00
eventlogs.go eventlogs moves in from at-home-tools, on the netfs library (#1) 2026-11-29 23:46:52 -08:00
eventlogs_test.go eventlogs moves in from at-home-tools, on the netfs library (#1) 2026-11-29 23:46:52 -08:00
go.mod Take Go dependencies (#2) 2026-11-30 17:06:13 -08:00
go.sum Take Go dependencies (#2) 2026-11-30 17:06:13 -08:00
launches.go eventlogs moves in from at-home-tools, on the netfs library (#1) 2026-11-29 23:46:52 -08:00
launches_test.go eventlogs moves in from at-home-tools, on the netfs library (#1) 2026-11-29 23:46:52 -08:00
native_windows.go eventlogs moves in from at-home-tools, on the netfs library (#1) 2026-11-29 23:46:52 -08:00
pc.go eventlogs moves in from at-home-tools, on the netfs library (#1) 2026-11-29 23:46:52 -08:00
pc_test.go eventlogs moves in from at-home-tools, on the netfs library (#1) 2026-11-29 23:46:52 -08:00
README.md eventlogs moves in from at-home-tools, on the netfs library (#1) 2026-11-29 23:46:52 -08:00
starts_windows.go eventlogs moves in from at-home-tools, on the netfs library (#1) 2026-11-29 23:46:52 -08:00
starts_windows_test.go eventlogs moves in from at-home-tools, on the netfs library (#1) 2026-11-29 23:46:52 -08:00

eventlogs

Copies a PC's Windows event logs to the NAS, a rolling window for diagnosing a failure after the local logs have moved on (HOMECFG-156). The share holds one .tar.xz archive of one .evtx per run and log, named by its time and its first and last record numbers. Those names are the only state: the highest record number there is where the next export starts, so a crash, an outage or a rebuilt PC can neither repeat a record nor skip one the local log still holds. home-sync sizes and enables the same logs (Logs); event-logs runs the export.

It was at-home-tools' eventlogs package until shared packages got repositories of their own (AGT-85, AHT-258).

Using it

require forgejo.romaine.life/romaine-life/eventlogs v0.1.0
import "forgejo.romaine.life/romaine-life/eventlogs"

Testing

go test ./...; the export tests are Windows-only.

Shipping

A library: the release-module topic in pipeline-templates' fleet.json tags each merge that changes the code, and every fleet repository whose go.mod requires it gets a take-up. Forgejo pushes it to its public GitHub copy, which proxy.golang.org serves to builds outside CI.