Help Center/ GaussDB(for MySQL)/ User Guide/ Logs and Auditing/ Viewing Error Logs of a DB Instance
Updated on 2024-09-24 GMT+08:00

Viewing Error Logs of a DB Instance

Error logs contain logs generated while the database is running. They can help you analyze problems with the database.

Viewing Log Details

  1. Log in to the management console.
  2. Click in the upper left corner and select a region and project.
  3. Click in the upper left corner of the page and choose Databases > GaussDB(for MySQL).
  4. On the Instances page, click the instance name.
  5. In the navigation pane, choose Logs.
  6. On the Error Logs page, view error logs of different nodes, at different log levels, and within a specified time range.

    Click the drop-down list in the upper right corner, and select a node name and a log level as needed.

    The levels of error logs include ALL, INFO, WARNING, ERROR, FATAL and NOTE.

    Click and specify a time period.

    Figure 1 Viewing error logs

Reporting Error Logs to LTS

  1. Log in to the management console.
  2. Click in the upper left corner and select a region and project.
  3. Click in the upper left corner of the page, choose Databases > GaussDB(for MySQL).
  4. On the Instances page, click the instance name.
  5. In the navigation pane, choose Logs.
  6. On the Error Logs tab, click next to Report Error Logs to LTS.
  7. Select an LTS log group and log stream and click OK.

    Figure 2 Reporting error logs to LTS