Amazon DocumentDB (with MongoDB compatibility) adds support for slow query logging

Today, Amazon DocumentDB added support for logging slow queries via the query profiler. The profiler is useful for monitoring the slowest queries on your cluster to help you improve individual query and overall cluster performance. After enabling the profiler, operations that run longer than the customer-defined threshold (100ms by default) will log their execution time and query plan to Amazon CloudWatch Logs. You can use CloudWatch Logs Insights to analyze Amazon DocumentDB profiling data. For more information, please see profiling DocumentDB operations.



https://aws.amazon.com/about-aws/whats-new/2019/08/amazon-documentdb-with-mongodb-compatibility-adds-support-for-slow-query-logging/