76.1. Instance Log #

76.1.1. Pre-Configuring Logging of Instance Messages #

For PPEM to log DBMS instance messages, install the logging and monitoring tools on the servers where instances are running, then configure logging for the necessary instances on the servers.

For detailed instructions, refer to Chapter 34.

76.1.2. Viewing Instance Log #

Go to the instance log in one of the following ways:

  • To view the logs of all instances, go to Logs → Messages.

    The Global mode toggle under the page title controls whether all objects on this page are managed across all workspaces. Use the toggle with caution. For details, refer to Section 43.6.

  • To view the log of an individual instance:

    1. Go to the Infrastructure navigation tab → Instances.

    2. Click the name of the instance.

    3. In the navigation panel, go to Messages.

The table of records will be displayed. Every record in the table represents a logged message.

To show only error messages, click Show errors at the top right corner of the table. To show all messages, click in the Type filter.

Note

Some columns may be hidden in the web application interface. To display such columns, click  Edit in the top-right corner of the table and configure the necessary column layout.

The table has the following columns:

  • Date and time: The date and time when the message was created.

    You can view the full message text by clicking next to the date and time.

  • Instance: The instance associated with the message.

    This column is not displayed when you view the log of an instance.

  • Session: The ID of the user session where the message was created.

  • Application: The source application of the message.

  • User: The user on behalf of which the session was initiated.

  • Database: The database associated with the user session.

  • Type.

    Possible values:

    • DEBUG1

    • DEBUG2

    • DEBUG3

    • DEBUG4

    • DEBUG5

    • INFO

    • NOTICE

    • WARNING

    • ERROR

    • LOG

    • FATAL

    • PANIC

    For more information about message types, refer to the official Postgres Pro documentation.

  • SQLSTATE code: The SQLSTATE code of the message.

  • Message: The short text of the message.

  • Details: The detailed text of the message.

  • Hint: The error hint.

    Hints are displayed only for messages of the ERROR, FATAL, and PANIC types.

  • Query ID: The ID of the query associated with the message.

    You can use this ID to find statistics in the pg_stat_activity, pg_stat_statements, and pgpro_stats views.

  • Query: The text of the query associated with the message.

FAQ