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
- Log in to the management console.
- Click
in the upper left corner and select a region and a project.
- Click Service List. Under Database, click Document Database Service to go to the DDS console.
- On the Instances page, click the instance name.
- In the navigation pane on the left, choose Error Logs.
- 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.
- On the Log Details tab, click Advanced Search.
- Specify Keyword and click Search to view log information.
- To clear the parameter settings of Advanced Search, click Reset.
Downloading Logs
- Log in to the management console.
- Click
in the upper left corner and select a region and a project.
- Click Service List. Under Database, click Document Database Service to go to the DDS console.
- On the Instances page, click the instance name.
- In the navigation pane on the left, choose Error Logs.
- 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.
- 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.
Parent topic: Logs
- Viewing Log Details
- Downloading Logs