Document Center

    ApsaraDB for MongoDB

    • Release notes
    • Product Notification
      • Notice on changing the monitoring data collection interval to 60 seconds as November 19, 2020
      • Notice: ApsaraDB for MongoDB has phased MongoDB 3.2 out and released MongoDB 4.2 since February 4
    • Product Introduction
      • What is ApsaraDB for MongoDB?
      • Comparison between ApsaraDB for MongoDB and self-managed databases
      • System architecture
        • Architecture of ApsaraDB for MongoDB
        • Architecture of standalone instances
        • Architecture of replica set instances
        • Architecture of sharded cluster instances
      • Features
      • Scenarios
      • Instance types
      • MongoDB versions and storage engines
      • Terms
      • Instance categories
    • Purchase Guide
      • Configuration change fees
      • Billing items and pricing
    • Quick Start
      • Usage notes
      • ApsaraDB for MongoDB console
        • ApsaraDB for MongoDB console (Standalone instances)
        • ApsaraDB for MongoDB console (replica set instance)
        • ApsaraDB for MongoDB console (sharded cluster instance)
      • Get started
      • Create an instance
        • Create a standalone instance
        • Create a replica set instance
        • Create a sharded cluster instance
      • Reset the password
      • Configure a whitelist for an ApsaraDB for MongoDB instance
      • Apply for a public endpoint for an ApsaraDB for MongoDB instance
      • Connect to an instance
        • Connect to a standalone ApsaraDB for MongoDB instance by using DMS
        • Connect to a replica set ApsaraDB for MongoDB instance by using DMS
        • Connect to a sharded cluster ApsaraDB for MongoDB instance by using DMS
        • Connect to a standalone ApsaraDB for MongoDB instance by using the mongo shell
        • Connect to a replica set instance by using the mongo shell
        • Connect to a sharded cluster ApsaraDB for MongoDB instance by using the mongo shell
        • Connect to an ApsaraDB for MongoDB instance by using the program code
      • Migrate data
        • Migrate self-managed standalone MongoDB databases to Alibaba Cloud by using DTS
        • Migrate the replica set of a user-created MongoDB database to ApsaraDB for MongoDB by using DTS
        • Migrate a self-managed sharded MongoDB database to ApsaraDB for MongoDB by using DTS
        • Migrate self-managed MongoDB databases to standalone instances by using tools provided by MongoDB
        • Migrate self-managed databases to Alibaba Cloud by using tools provided by MongoDB
        • Migrate a self-managed MongoDB database to ApsaraDB for MongoDB by using tools provided by MongoDB
    • User Guide
      • Preface
      • Quick start
      • Logon and logoff
      • Billing management
        • Change the billing method of an ApsaraDB for MongoDB instance from pay-as-you-go to subscription
        • Enable and disable auto-renewal for an ApsaraDB for MongoDB subscription instance
        • Manually renew an ApsaraDB for MongoDB subscription instance
      • Instance connection
        • Connect to an ApsaraDB for MongoDB instance
        • Connect to an ApsaraDB for MongoDB instance over the internal network across zones
        • How to connect an ECS instance to an ApsaraDB for MongoDB instance when they are in different regions
        • How to connect an ECS instance to an ApsaraDB for MongoDB instance when their network types are different
        • Connect an ECS instance with an ApsaraDB for MongoDB instance in another Alibaba Cloud account
        • Connect to an ApsaraDB for MongoDB instance over the Internet
        • Connect a local client to an ApsaraDB for MongoDB instance by using an SSL-VPN tunnel
        • Manage ApsaraDB for MongoDB instances by using DMS
      • Account management
        • Reset the password for an ApsaraDB for MongoDB instance
        • Manage user permissions on MongoDB databases
      • Instance management
        • Changing Instance Configuration
          • Change the configuration of a sharded cluster instance
          • Configuration change overview
          • Change the number of nodes for a replica set instance
          • Change the configuration of a standalone or replica set instance
        • Upgrading Database Version
          • Upgrade the minor version of an ApsaraDB for MongoDB instance
          • Upgrade MongoDB versions
        • Specify a maintenance period
        • View zones of nodes
        • Migrate an ApsaraDB for MongoDB instance across zones in the same region
        • Switch node roles
        • Export the list of instances
        • Release an ApsaraDB for MongoDB instance
        • Restart an ApsaraDB for MongoDB instance
      • Tag management
        • Create a tag
        • Bind existing tags
        • Filter instances by tag
        • Unbind or delete a tag
      • Network connection management
        • Connection String of a Shard or Configserver Node
          • Apply for a connection string of a shard or Configserver node
          • Release the connection string of a shard or Configserver node
        • Public IP Connection
          • Apply for a public endpoint for an ApsaraDB for MongoDB instance
          • Release a public endpoint
        • Enable or disable password-free access for an ApsaraDB for MongoDB instance
        • Modify a public or internal endpoint of an ApsaraDB for MongoDB instance
        • Switch the network type of an ApsaraDB for MongoDB instance
        • Configure a VPC for a new instance
        • Configure a hybrid access solution to switch the network type of an ApsaraDB for MongoDB instance from classic network to VPC
        • Change the retention period of internal endpoints on the classic network of an ApsaraDB for MongoDB instance
      • Data security
        • Configure a whitelist or an ECS security group for an ApsaraDB for MongoDB instance
        • Configure SSL encryption for an ApsaraDB for MongoDB instance
        • Configure TDE for an ApsaraDB for MongoDB instance
        • Use the mongo shell to connect to an ApsaraDB for MongoDB database in SSL encryption mode
        • SSL connection sample code for MongoDB drivers
        • Audit logs (new version)
          • Enable the new audit log feature
          • Query audit logs
          • Modify audit settings
          • Download audit logs
          • Subscribe to audit log reports
          • Disable audit logging
      • Monitoring and alerting
        • View monitoring information
        • Set the monitoring granularity
        • Configure alert rules
      • Parameter settings
        • Configure database parameters for an ApsaraDB for MongoDB instance
        • View the parameter modification history
      • Primary/Secondary failover
        • Trigger a primary/secondary failover for a replica set instance
        • Configure a primary/secondary failover for a sharded cluster instance
      • Log management
        • Overview
        • View slow query logs
        • View error logs
        • View operation logs
      • Data migration and synchronization
        • Overview
        • Migrate an ECS-hosted self-managed MongoDB database that uses the standalone or replica set architecture to ApsaraDB for MongoDB
        • Migrate the shards of a self-managed MongoDB database that hosts on ECS to ApsaraDB for MongoDB
        • Migrate data between ApsaraDB for MongoDB instances
          • Migrate data from a replica set MongoDB instance to a sharded cluster instance
          • Migrate data from a standalone instance to a replica set or sharded cluster instance
          • Migrate data between ApsaraDB for MongoDB instances across regions
          • Migrate data between ApsaraDB for MongoDB instances created by different Alibaba Cloud accounts
        • Migrate data from a third-party cloud service provider to Alibaba Cloud
          • Migrate data from Amazon DynamoDB to ApsaraDB for MongoDB by using mongoimport
          • Migrate data from MongoDB Atlas to ApsaraDB for MongoDB by using mongodump and mongorestore
          • Migrate data from a MongoDB Atlas database to Alibaba Cloud
          • Migrate an Amazon DynamoDB database to ApsaraDB for MongoDB by using NimoShake
          • Use NimoFullCheck to check data consistency after migration
        • Data synchronization
          • Use MongoShake to implement delayed synchronization among ApsaraDB for MongoDB instances
          • Use MongoShake to implement one-way synchronization between ApsaraDB for MongoDB replica set instances
      • Data backup
        • Configure automatic backup for an ApsaraDB for MongoDB instance
        • Manually back up an ApsaraDB for MongoDB instance
      • Data recovery
        • Restoration solution overview
        • Restore data to a new ApsaraDB for MongoDB instance
        • Create an instance from a backup
        • Restore data to a new ApsaraDB for MongoDB instance by point in time
        • Restore data to the current ApsaraDB for MongoDB instance
        • Restore data of an ApsaraDB for MongoDB instance to self-managed MongoDB databases by using logical backup
        • Recover physical backup data in a user-created MongoDB instance
          • Download the physical backup data of a replica set instance
          • Restore data of an ApsaraDB for MongoDB instance to a self-managed MongoDB database by using physical backup
      • CloudDBA for performance diagnostics and optimization
        • View performance trends of an ApsaraDB for MongoDB instance
        • Customize a performance trend chart
        • Real-time performance
        • Instance sessions
        • Slow query logs
        • Capacity analysis
      • Zone-disaster restoration solution
        • Create a multi-zone replica set instance
        • Create a multi-zone sharded cluster instance
    • Performance White Paper
      • Overview
      • Test environment
      • Test tool
      • Test procedure
      • Test results
    • Security White Paper
      • Overview
      • Access control
      • Data backup
      • Version maintenance
      • Network isolation
      • Service authorization
    • Best Practices
      • Performance
        • Configure sharding to maximize the performance of shards
        • Troubleshoot the high CPU utilization of ApsaraDB for MongoDB
        • Defragment a disk to improve disk usage
        • Connect to a replica set instance and implement read /write splitting and high availability
        • Import and export MongoDB data through Data Integration
      • Best practices for data security of ApsaraDB for MongoDB
      • Set common alert rules for ApsaraDB for MongoDB
      • Migrate Azure Cosmos DB's API for MongoDB to ApsaraDB for MongoDB
      • Manage the ApsaraDB for MongoDB balancer
      • Redirect read requests to data images while data is being updated
      • Use a connection string URI to connect to a sharded cluster instance
      • Use MongoDB to store logs
      • MongoDB sharding
      • How a replica set in MongoDB works
    • API Reference
      • Common parameters
      • Request structure
      • Request signatures
      • How to use RAM authorization
        • Use RAM for MongoDB Resource Authorization
        • MongoDB resource types that can be authorized in RAM
        • Operations that can be authorized in RAM
        • Authorization rules of API
      • List of API operations by function
      • Lifecycle management
        • CreateDBInstance
        • ModifyDBInstanceSpec
        • DeleteDBInstance
        • CreateShardingDBInstance
        • CreateNode
        • DeleteNode
        • ModifyNodeSpec
        • DescribeInstanceAutoRenewalAttribute
      • Region management
        • MigrateAvailableZone
        • DescribeRegions
        • MigrateToOtherZone
      • Resource Management
        • DescribeAvailableResource
        • EvaluateResource
      • Connection Management
        • ModifyDBInstanceNetworkType
        • ModifyInstanceVpcAuthMode
        • ReleasePublicNetworkAddress
        • AllocatePublicNetworkAddress
        • DescribeShardingNetworkAddress
        • ReleaseNodePrivateNetworkAddress
        • ModifyDBInstanceConnectionString
        • AllocateNodePrivateNetworkAddress
      • Querying Instance Information
        • DescribeReplicaSetRole
        • DescribeKernelReleaseNotes
        • DescribeAvailableEngineVersion
        • DescribeDBInstances
        • DescribeDBInstanceAttribute
        • DescribeRoleZoneInfo
        • DescribeActiveOperationTaskCount
        • DescribeActiveOperationTaskType
        • DescribeDedicatedClusterInstanceList
      • Instance management
        • RestartDBInstance
        • ModifyDBInstanceMaintainTime
        • ModifyDBInstanceDescription
        • SwitchDBInstanceHA
        • UpgradeDBInstanceEngineVersion
        • DestroyInstance
        • UpgradeDBInstanceKernelVersion
        • ModifyDBInstanceNetExpireTime
      • Tag management
        • TagResources
        • ListTagResources
        • DescribeTags
        • UntagResources
      • Account management
        • ResetAccountPassword
        • DescribeAccounts
        • ModifyAccountDescription
      • IP Whitelist and Security Groups
        • DescribeSecurityIps
        • ModifySecurityIps
        • DescribeSecurityGroupConfiguration
        • ModifySecurityGroupConfiguration
      • Encription Keys
        • ModifyDBInstanceTDE
        • DescribeDBInstanceTDEInfo
        • CheckCloudResourceAuthorized
        • DescribeDBInstanceEncryptionKey
        • DescribeUserEncryptionKeyList
      • SSL encryption
        • DescribeDBInstanceSSL
        • ModifyDBInstanceSSL
      • Audit Logs
        • DescribeAuditRecords
        • DescribeAuditPolicy
        • ModifyAuditLogFilter
        • DescribeAuditLogFilter
        • ModifyAuditPolicy
      • Log management
        • DescribeSlowLogRecords
        • DescribeErrorLogRecords
        • DescribeRunningLogRecords
        • DescribeMongoDBLogConfig
      • Performance monitoring management
        • DescribeDBInstancePerformance
        • ModifyDBInstanceMonitor
        • DescribeDBInstanceMonitor
      • Parameter management
        • DescribeParameterModificationHistory
        • DescribeParameterTemplates
        • ModifyParameters
        • DescribeParameters
      • Index recommendations
        • CreateRecommendationTask
        • DescribeAvailableTimeRange
      • Backup and recovery
        • DescribeBackupPolicy
        • ModifyBackupPolicy
        • CreateBackup
        • DescribeBackups
        • RestoreDBInstance
        • DescribeBackupDBs
        • CheckRecoveryCondition
      • Renewal management
        • DescribePrice
        • RenewDBInstance
        • DescribeRenewalPrice
        • TransformToPrePaid
        • ModifyInstanceAutoRenewalAttribute
      • Appendix
        • Error codes
        • Instance specifications
        • Instance states
        • Performance metrics
        • Valid values of the InstanceStatus parameter for DescribeDedicatedClusterInstanceList
        • Details of the DBInstances parameter in the DescribePrice operation
    • SDK Reference
      • Download SDKs
      • Use SDK for Java
    • Product Usage
      • Hot issues
      • Database connections
      • Account and permission management
      • Product features
      • Performance and storage space
      • errors and exception handling
      • How to back up and restore data for an apsaradb for MongoDB instance
      • What is the log deletion policy of an ApsaraDB for MongoDB instance?
 
All Products
Search
  • Document Center
  • ApsaraDB for MongoDB
  • User Guide
  • Log management
  • Overview

This Product

  • This Product
  • All Products

    Overview

    Document Center

    Overview

    Last Updated: Aug 31, 2020

    ApsaraDB for MongoDB enables the log management feature. This topic describes how to view the logs of ApsaraDB for MongoDB instances.

    Use the log management feature to view logs

    Log type Related topics
    Slow query logs View slow query logs
    Error logs View error logs
    Running logs View operation logs

    Use other methods to view logs

    You can also view audit logs and slow query logs in CloudDBA. For more information, see Enable the new audit log feature and Slow query logs.

    Previous: Configure a primary/secondary failover for a sharded cluster instance Next: View slow query logs

    How helpful was this page?

    What might be the problems?

      More suggestions?

      Thank you! We've received your feedback.
      Free Trial Free Trial