Skip to content

Test-PAMAuditLog

Harbor OnboardNo sign-in neededGenerated from the codeDescribes Onboard 0.59.0

Verifies the tamper-evident hash chain of a day’s JSONL activity log: proves no entry was altered, removed or inserted since it was written.

Terminal window
Test-PAMAuditLog [[-Date] <string>] [[-ConfigPath] <string>] [[-ConfigProfile] <string>]

Walks harbor-<date>.jsonl and re-computes each chained entry’s SHA-256 (via the same canonical form the writer used). Reports:

  • a hash mismatch -> the entry’s content was ALTERED,
  • a broken prevHash link -> an entry was REMOVED or REORDERED,
  • a sequence gap -> an entry was REMOVED,
  • a mid-file chain restart -> the file was TRUNCATED and restarted.

Lines written before the chain existed (no hash fields) are counted as Unchained – legacy, not failures. Works offline; no session needed.

Terminal window
Test-PAMAuditLog # today's log
Terminal window
Test-PAMAuditLog -Date 20260715

Not described in the module help.

Type Required Position Pipeline input
String No 1 No

Not described in the module help.

Type Required Position Pipeline input
String No 2 No

Not described in the module help.

Type Required Position Pipeline input
String No 0 No

Default: (Get-Date).ToString('yyyyMMdd').

This command also accepts the PowerShell common parameters (-Verbose, -ErrorAction, and so on).

Covers Harbor Onboard 0.59.0 / Harbor Health 0.22.0. On an older release? Upgrading and the release notes list what changed.