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.
Constraints
Community Edition DB instances allow you to view and export log details, and download log files on the management console.
Viewing and Exporting Log Details
- Log in to the DDS console.
- On the Instance Management page, click the target DB instance.
- In the navigation pane on the left, click Error Logs.
- On the displayed page, click Error Logs. Then, view the log details on the Log Details tab.
- 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
- Log records of different node types of a cluster instance in batches
- On the Log Details tab, click
in the upper right corner of the log list to export log details.
- View the .csv file exported to your local PC.
- A maximum of 10,000 log details can be exported at a time.
Downloading Logs
- Log in to the DDS console.
- On the Instance Management page, click the target Community Edition instance.
- In the navigation pane on the left, click 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.
Figure 1 Error Logs
- 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.
- The system automatically loads the downloading preparation tasks. The loading duration is determined by the log file size and network environment.
Last Article: Log Management
Next Article: Slow Query Log
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.