CosmosD DB Postgresql ignores log_statement setting

Heorhii Teriaiev 70 Reputation points
2023-04-17T10:25:26.51+00:00

Hi there. We use CosmosDB for Postgresql. PostgreSQL version: 15 Citus version: 11.1 Configuration: single-node We want our SQL queries to be logged on server side. We configured CosmosDB to log server logs to log analytics: User's image

it works, we can see some server logs in log explorer. In order to get SQL queries to logs, we set 'log_statement' setting to 'ALL'. It changed nothing, no new events in logs. Also tried to set 'log_min_messages' setting to 'INFO', still nothing. Can you please suggest what we should do here to have our SQL queries written to server logs? As per the documentation, log_statement should've been enough. Thank you

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,901 questions
{count} votes

Accepted answer
  1. Oury Ba-MSFT 20,911 Reputation points Microsoft Employee Moderator
    2023-04-25T16:23:03.8833333+00:00

    Heorhii Teriaiev Thank you for being patient while working on this issue. A fix was implemented on your clusters. You should now be able to see the logs. Please check and let me know the result. Sorry for the inconvenience this may have caused. Regards, Oury


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.