Skip to content

Get-HarborActivity

Harbor OnboardNo sign-in neededGenerated from the codeDescribes Onboard 0.59.0

Reads the structured JSON activity log (the .jsonl written alongside the flat-text log) as objects – the audit/activity feed the web UI renders.

Terminal window
Get-HarborActivity [[-RunId] <string>] [[-Level] <string>] [[-Date] <string>] [[-Tail] <int>] [[-ConfigPath] <string>] [[-ConfigProfile] <string>]

Reads harbor-<date>.jsonl from the active profile’s log folder. Filter by -RunId or -Level, take the last -Tail entries, or point at a specific -Date (yyyyMMdd). Returns newest-last objects: timestamp, level, runId, message.

Terminal window
Get-HarborActivity -Tail 20
Terminal window
Get-HarborActivity -RunId 6b274634

Not described in the module help.

Type Required Position Pipeline input
String No 4 No

Not described in the module help.

Type Required Position Pipeline input
String No 5 No

Not described in the module help.

Type Required Position Pipeline input
String No 2 No

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

Not described in the module help.

Type Required Position Pipeline input
String No 1 No

Accepted values: DEBUG, INFO, SUCCESS, WARN, ERROR.

Not described in the module help.

Type Required Position Pipeline input
String No 0 No

Not described in the module help.

Type Required Position Pipeline input
Int32 No 3 No

Default: 0.

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.