Export-HarborLog
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.
Syntax
Section titled “Syntax”Export-HarborLog [[-Date] <string>] [[-Format] <string>] [[-ConfigPath] <string>] [[-ConfigProfile] <string>] [-ContentOnly]Description
Section titled “Description”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.
Examples
Section titled “Examples”Example 1
Section titled “Example 1”Export-HarborLog -Format csv | Set-Content harbor-today.csvParameters
Section titled “Parameters”-ConfigPath
Section titled “-ConfigPath”Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
String |
No | 2 | No |
-ConfigProfile
Section titled “-ConfigProfile”Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
String |
No | 3 | No |
-ContentOnly
Section titled “-ContentOnly”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').
-Format
Section titled “-Format”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).
See also
Section titled “See also”- All Harbor Onboard cmdlets
- In PowerShell:
Get-Help Export-HarborLog -Full
Covers Harbor Onboard 0.59.0 / Harbor Health 0.22.0. On an older release? Upgrading and the release notes list what changed.
