mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-22 22:56:29 +00:00
80 lines
2.6 KiB
XML
80 lines
2.6 KiB
XML
<refentry id="repmgr-cluster-event">
|
|
<indexterm>
|
|
<primary>repmgr cluster event</primary>
|
|
</indexterm>
|
|
|
|
<refmeta>
|
|
<refentrytitle>repmgr cluster event</refentrytitle>
|
|
</refmeta>
|
|
|
|
<refnamediv>
|
|
<refname>repmgr cluster event</refname>
|
|
<refpurpose>output a formatted list of cluster events</refpurpose>
|
|
</refnamediv>
|
|
|
|
<refsect1>
|
|
<title>Description</title>
|
|
|
|
<para>
|
|
Outputs a formatted list of cluster events, as stored in the <literal>repmgr.events</literal> table.
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1>
|
|
<title>Usage</title>
|
|
|
|
<para>
|
|
Output is in reverse chronological order, and
|
|
can be filtered with the following options:
|
|
<itemizedlist spacing="compact" mark="bullet">
|
|
<listitem>
|
|
<simpara><literal>--all</literal>: outputs all entries</simpara>
|
|
</listitem>
|
|
<listitem>
|
|
<simpara><literal>--limit</literal>: set the maximum number of entries to output (default: 20)</simpara>
|
|
</listitem>
|
|
<listitem>
|
|
<simpara><literal>--node-id</literal>: restrict entries to node with this ID</simpara>
|
|
</listitem>
|
|
<listitem>
|
|
<simpara><literal>--node-name</literal>: restrict entries to node with this name</simpara>
|
|
</listitem>
|
|
<listitem>
|
|
<simpara><literal>--event</literal>: filter specific event (see <xref linkend="event-notifications"/> for a full list)</simpara>
|
|
</listitem>
|
|
</itemizedlist>
|
|
</para>
|
|
<para>
|
|
The "Details" column can be omitted by providing <literal>--compact</literal>.
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1>
|
|
<title>Output format</title>
|
|
<para>
|
|
<itemizedlist spacing="compact" mark="bullet">
|
|
|
|
<listitem>
|
|
<simpara>
|
|
<literal>--csv</literal>: generate output in CSV format. Note that the <literal>Details</literal>
|
|
column will currently not be emitted in CSV format.
|
|
</simpara>
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1>
|
|
<title>Example</title>
|
|
<para>
|
|
<programlisting>
|
|
$ repmgr -f /etc/repmgr.conf cluster event --event=standby_register
|
|
Node ID | Name | Event | OK | Timestamp | Details
|
|
---------+-------+------------------+----+---------------------+-------------------------------------------------------
|
|
3 | node3 | standby_register | t | 2019-04-16 10:59:59 | standby registration succeeded; upstream node ID is 1
|
|
2 | node2 | standby_register | t | 2019-04-16 10:59:57 | standby registration succeeded; upstream node ID is 1</programlisting>
|
|
</para>
|
|
</refsect1>
|
|
</refentry>
|