Get-HarborActivity
Reads the structured JSON activity log (the .jsonl written alongside the flat-text log) as objects – the audit/activity feed the web UI renders.
Syntax
Section titled “Syntax”Get-HarborActivity [[-RunId] <string>] [[-Level] <string>] [[-Date] <string>] [[-Tail] <int>] [[-ConfigPath] <string>] [[-ConfigProfile] <string>]Description
Section titled “Description”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.
Examples
Section titled “Examples”Example 1
Section titled “Example 1”Get-HarborActivity -Tail 20Example 2
Section titled “Example 2”Get-HarborActivity -RunId 6b274634Parameters
Section titled “Parameters”-ConfigPath
Section titled “-ConfigPath”Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
String |
No | 4 | No |
-ConfigProfile
Section titled “-ConfigProfile”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').
-Level
Section titled “-Level”Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
String |
No | 1 | No |
Accepted values: DEBUG, INFO, SUCCESS, WARN, ERROR.
-RunId
Section titled “-RunId”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).
See also
Section titled “See also”- All Harbor Onboard cmdlets
- In PowerShell:
Get-Help Get-HarborActivity -Full
Covers Harbor Onboard 0.59.0 / Harbor Health 0.22.0. On an older release? Upgrading and the release notes list what changed.
