Logging CockroachDB queries

I have an application running CockroachDB on Amazon Web Services and need to log all of the queries it executes. Be that as it may, I can’t discover anything in my cluster’s logs that appears to contain the queries. I tried grepping through them for my application’s SELECT statements but can’t find them.

Is there an approach to enable query logging?

Hi @gracylayla,

That’s a great question. There are a few different kinds of query logs you can enable in CockroachDB. You can find information about both in our docs.

Please let me know if you have further questions.