Is there a query log?


#1

Hi, exists a log document where we can see all the queries my bucket has been receiving? I need to know if my bucket received a delete query for specific documents

thanks


#2

SELECT * FROM system:completed_requests ;
Will return all the queries that taken more than 500ms (it is configurable) since last time query engine started.

Check this article by @Marco_Greco


#3

From Couchbase Server 5.5 onwards, you can also take a look at Auditing N1ql Queries - https://developer.couchbase.com/documentation/server/current/n1ql/n1ql-language-reference/n1ql-auditing.html.