Skip to content

Export-HarborLog

Harbor OnboardNo sign-in neededGenerated from the codeDescribes Onboard 0.59.0

Returns a day’s Harbor log as text for download/export: the flat console log, the structured JSON-lines log, or a CSV rendering of the activity.

Terminal window
Export-HarborLog [[-Date] <string>] [[-Format] <string>] [[-ConfigPath] <string>] [[-ConfigProfile] <string>] [-ContentOnly]

Reads from the active profile’s log folder. Used by the UI’s “Export logs” button (returns { Filename, Format, Content }) and usable from the CLI to pipe a day’s activity somewhere.

Terminal window
Export-HarborLog -Format csv | Set-Content harbor-today.csv

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 3 No

Not described in the module help.

Type Required Position Pipeline input
SwitchParameter No Named No

Not described in the module help.

Type Required Position Pipeline input
String No 0 No

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

Not described in the module help.

Type Required Position Pipeline input
String No 1 No

Accepted values: log, jsonl, csv. Default: log.

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.