anchorectl event
Event related operations.
Every command on this page also accepts the global flags.
Subcommands
- event delete — Delete an event by its event ID or set of filters
- event get — Lookup an event by its event ID
- event list — Returns a paginated list of events in the descending order of their occurrence. Optional query parameters may be used for filtering results
event delete
Delete an event by its event ID or set of filters.
anchorectl event delete EVENT_ID [flags]
Aliases: del
Arguments
| Argument | Description |
|---|---|
EVENT_ID | Id of event to delete. |
Flags
| Flag | Type | Environment variable | Default | Required | Description |
|---|---|---|---|---|---|
--all | bool | — | false | No | Delete all events. |
--before | string | ANCHORECTL_EVENT_BEFORE | "" | No | Delete events that occurred before the timestamp. |
--force | bool | ANCHORECTL_EVENT_FORCE | false | No | Force without prompt. |
--level | string | ANCHORECTL_EVENT_LEVEL | "" | No | Delete events that match the level - INFO or ERROR. |
-o, --output | string | ANCHORECTL_FORMAT | text | No | The format to show the results. Allowable values: text, json, json-raw, id. See Output Formats. |
--since | string | ANCHORECTL_EVENT_SINCE | "" | No | Delete events that occurred after the timestamp. |
event get
Lookup an event by its event ID.
anchorectl event get ID [flags]
Arguments
| Argument | Description |
|---|---|
ID | Event ID of the event for lookup. |
Flags
| Flag | Type | Environment variable | Default | Required | Description |
|---|---|---|---|---|---|
-o, --output | string | ANCHORECTL_FORMAT | text | No | The format to show the results. Allowable values: text, json, json-raw, id. See Output Formats. |
event list
Returns a paginated list of events in the descending order of their occurrence. Optional query parameters may be used for filtering results.
anchorectl event list [flags]
Flags
| Flag | Type | Environment variable | Default | Required | Description |
|---|---|---|---|---|---|
--all | bool | ANCHORECTL_EVENT_ALL | false | No | Return all events. |
--before | string | ANCHORECTL_EVENT_BEFORE | "" | No | Return events that occurred before the ISO8601 formatted UTC timestamp. |
--event-type | string | ANCHORECTL_EVENT_TYPE | "" | No | Filter events by a prefix match on the event type (e.g. “user.image.”). |
--host | string | ANCHORECTL_EVENT_SOURCE_HOST_ID | "" | No | Filter events by the originating host ID. |
--level | string | ANCHORECTL_EVENT_LEVEL | "" | No | Filter events by the level - INFO or ERROR. |
-o, --output | string | ANCHORECTL_FORMAT | text | No | The format to show the results. Allowable values: text, json, json-raw, id. See Output Formats. |
--page | int | ANCHORECTL_PAGE | 0 | No | Return the nth page of results starting from 1. Defaults to first page if left empty. |
--resource-id | string | ANCHORECTL_EVENT_RESOURCE_ID | "" | No | Filter events by a specified resource ID. |
--resource-type | string | ANCHORECTL_EVENT_RESOURCE_TYPE | "" | No | Filter events by the type of resource - tag, imageDigest, repository etc. |
--service | string | ANCHORECTL_EVENT_SOURCE_SERVICE_NAME | "" | No | Filter events by the originating service. |
--since | string | ANCHORECTL_EVENT_SINCE | "" | No | Return events that occurred after the ISO8601 formatted UTC timestamp. |