repmgr cluster event
Name
repmgr cluster event -- output a formatted list of cluster events
Description
Outputs a formatted list of cluster events, as stored in the repmgr.events table.
Usage
Output is in reverse chronological order, and
can be filtered with the following options:
- --all: outputs all entries
- --limit: set the maximum number of entries to output (default: 20)
- --node-id: restrict entries to node with this ID
- --node-name: restrict entries to node with this name
- --event: filter specific event (see event notifications for a full list)
The "Details" column can be omitted by providing --terse.
Output format
- --csv: generate output in CSV format. Note that the Details
column will currently not be emitted in CSV format.
Example
$ repmgr -f /etc/repmgr.conf cluster event --event=standby_register
Node ID | Name | Event | OK | Timestamp | Details
---------+-------+------------------+----+---------------------+--------------------------------
3 | node3 | standby_register | t | 2017-08-17 10:28:55 | standby registration succeeded
2 | node2 | standby_register | t | 2017-08-17 10:28:53 | standby registration succeeded