Search code examples
azureazure-database-postgresql

Azure Database for PostgreSQL flexible server logs not working


I am trying to run logs for Azure Database for PostgreSQL flexible server, but I keep on getting this in the image below, what could be the solution?

enter image description here


Solution

  • In order to access the logs, we need to enable diagnostic settings on the Postgres server. Here are the necessary steps to take.

    Step1: enter image description here

    Click on "Add Diagnostic setting"

    enter image description here

    Enter name and click on respective log services, click on save

    enter image description here

    Verification:

    Goto Monitor -> logs and run the query

    enter image description here