You need to enable JavaScript to run this app.
Document Database for MongoDB

Document Database for MongoDB

Copy page
Download PDF
Log management
Querrying error logs
Copy page
Download PDF
Querrying error logs
Document Database for MongoDB supports logs management, allowing you to view and export error log details for different nodes under different components via the console, which helps quickly identify problems.​
Procedure​
  1. Log in to the MongoDB console.​
  1. In the upper-left corner of the top menu bar, select the project and region for instance.​
  1. Select either Replica set instances or Sharding instances in the left navigation bar depending on the instance type.​
  1. On the target instance type list page, click the target instance name.​
  1. On the instance details page, click the Logs tab.​
  1. Click Error log sub-tab, and you can quickly filter error logs that meet the criteria based on business needs through keywords, components, and query time.​
tip​
  • You can view the details of error logs within the last 7 days. By default, details of error logs within the last 1 day are displayed.​
  • You can export the error log query results that meet the filtering criteria to a local device for management. For specific procedures, refer to Exporting logs.​
Relevant APIs​
​
API​
Description​
Call the DescribeNormalLogs API to query the running log or error log information of the target MongoDB instance within the specified time period.​
​
​
Last updated: 2026.02.05 22:22:29