Advanced
Тема интерфейса

Error Logs

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 management console.
  2. Click in the upper left corner and select a region and a project.
  3. Click Service List. Under Database, click Document Database Service to go to the DDS console.
  4. On the Instances page, click the instance name.
  5. In the navigation pane on the left, choose Error Logs.
  6. On the displayed page, click Error Logs. Then, view the log details.

    • For a cluster instance, you can view error logs of the dds mongos, shard, and config nodes.
    • For a replica set instance, you can view the error logs of the primary, secondary, hidden nodes, and read replicas.
    • You can view up to 2,000 error logs of a specified node type, at a specified level, and within a specified period.

  7. On the Log Details tab, click Advanced Search.
  8. Specify Keyword and click Search to view log information.
  9. To clear the parameter settings of Advanced Search, click Reset.

Downloading Logs

  1. Log in to the management console.
  2. Click in the upper left corner and select a region and a project.
  3. Click Service List. Under Database, click Document Database Service to go to the DDS console.
  4. On the Instances page, click the instance name.
  5. In the navigation pane on the left, choose Error Logs.
  6. 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 time it takes to download the logs depends on the file size and on the network environment.
      • During the downloading preparation, the log status is Preparing.
      • Once the logs are ready for download, the log status changes to 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 15 minutes. After the download link expires, a message is displayed indicating that the download link has expired. To download the log, click OK.