pgd events show v5
Synopsis
The pgd events show
command is used to display the events in the EDB Postgres Distributed cluster. With no additional flags, the command displays the 20 most recent events for all nodes and groups.
Syntax
pgd events show [OPTIONS]
Options
The following table lists the options available for the pgd events show
command:
Short | Long | Description |
---|---|---|
--node nodename | Only show events for the node with the specified name. | |
--group groupname | Only show events for the group with the specified name. | |
-n number | --number number | Show the specified number of events. Defaults to 20. |
See also Global Options.
Examples
Display the last 5 events
$ pgd events show -n 5
Output
Event Time Event Observer Event Subject Event Source Event Type Event Subtype Event Text Event Detail ------------------------------ -------------- ------------- ------------ ---------- ------------- ------------- ------------------------------------------------------------------------------------------------------- 2025-01-13 08:07:11.383250 UTC node-two node-two consensus ROUTING STATE_CHANGE RAFT_FOLLOWER 2025-01-13 08:07:11.383261 UTC node-two node-one consensus ROUTING STATE_CHANGE WRITE_LEADER dc1 2025-01-13 08:07:11.383291 UTC node-two node-two consensus ROUTING STATE_CHANGE RAFT_LEADER {"raft_leader":"node-two","group_name":"dc1","read_nodes_version":5,"read_nodes":"node-two,node-three"} 2025-01-13 08:07:14.945816 UTC sonode-one sonode-one consensus RAFT STATE_CHANGE RAFT_FOLLOWER pgd 2025-01-13 08:07:18.904540 UTC sonode2 sonode2 consensus RAFT STATE_CHANGE RAFT_FOLLOWER pgd