Updated on 2022-08-17 GMT+08:00

Error Log

Scenarios

DDS log management allows you to view database-level logs, including warning- and error-level logs generated during database running, which help you analyze system problems.

Viewing Log Details

  1. Log in to the DDS console.
  2. On the Instance Management page, click the target DB instance.
  3. In the navigation pane on the left, click Error Logs.
  4. On the displayed page, click Error Logs. Then, view the log details.

    • Log records of different node types of a cluster instance in batches
      • If you select All nodes, the logs of all nodes in the cluster instance are displayed.
      • If you select All mongos, the logs of all mongos in the cluster instance are displayed.
      • If you select All shards, the logs of all shards in the cluster instance are displayed.
      • If you select All configs, the logs of all configs in the cluster instance are displayed.
    • Error logs of all nodes of a replica set instance
    • Error logs of a node in different time periods
    • Error logs of the following level
      • All log levels
      • WARNING
      • ERROR

Downloading Logs

  1. Log in to the DDS console.
  2. On the Instance Management page, click the target instance.
  3. In the navigation pane on the left, click Error Logs.
  4. On the Error Logs page, click the Log Files tab. Locate a log whose status is Preparation completed and click Download in the Operation column.

    • The system automatically loads the downloading preparation tasks. The loading duration is determined by the log file size and network environment.
      • During the downloading preparation, the log status is Preparing.
      • After the downloading preparation is complete, the log status is Preparation completed.
      • If the downloading preparation fails, the log status is Abnormal.
    • You can download only one log file from a node. The maximum size of a log file to be downloaded is 40 MB.
    • The download link is valid for 5 minutes. After the download link expires, a message is displayed indicating that the download link has expired. If you need to download the log, click OK.