Manage events using the CLI
This page describes how to manage events using the CLI.
With the CLI, you can:
View events
Command: weka events
Use the following command line to list events in the Weka cluster:
weka events [--num-results num-results] [--start-time <start-time>] [--end-time <end-time>] [--severity severity] [--direction direction] [--fetch-order fetch-order] [--type-list type-list] [--exclude-type-list exclude-type-list] [--category-list category-list] [--cloud-time] [--show-internal] [--raw-units] [--UTC]
Parameters
Name | Value | Default |
---|---|---|
| Maximum number of events to display. Positive integer. 0 shows all events. | 50 |
| Include events that occurred at this start time and later.
Format: | -365 days |
| Include events that occurred up to this time.
Format: | Set to a time represents 'now' |
| Include events with this level of severity and higher.
Possible values: |
|
| Sort events by ascending or descending time.
Possible values: |
|
| Fetch from end-time and backward or start-time and forward.
Possible values: |
|
| Filter events by type (can be used multiple times).
Use | None |
| Filter-out events by type (can be used multiple times).
Use | |
| Include only events matching the defined category.
Possible values: | All |
| Query and sort results by the digested time in the cloud | False |
| Also displays internal events | False |
| Print values in raw units such as bytes and seconds. | Readable format. Example: 1KiB 234MiB 2GiB |
| Print times in UTC | Host's local time |
View events of a specific container
Command: weka events list-local
Use the following command line to list recent events on the specific container running the command from.
This command is helpful for the following cases:
No connectivity to the central monitoring site
No connectivity from a specific container
Containers that are not part of the cluster
weka events list-local [--start-time <start-time>] [--end-time <end-time>] [--next next] [--stem-mode] [--show-internal] [--raw-units] [--UTC]
Parameters
Name | Value | Default |
---|---|---|
| Include events that occurred at this start time and later.
Format: | -365 days |
| Include events that occurred up to this time.
Format: | Set to a time represents 'now' |
| Identifier to the next page of events.
As returned in the previous call to | |
| Displays events when the container has not been attached to the cluster | False |
| Also displays internal events | False |
| Print values in raw units, such as bytes and seconds. | Readable format. Examples: 1KiB 234MiB 2GiB. |
| Print times in UTC. | Server's local time. |
Trigger a custom event
Command: weka events trigger-event
It can be useful to mark specific activities, maintenance work, or important changes/new usage of the system, and see that as part of the system events timeline.
To trigger a custom event, use weka events trigger-event <text>
Related topics
Last updated