Hi @sappu solanki , welcome to Microsoft Q&A forum.
As I understand, you would like to access the server logs in Azure PostgreSQL - Flexible Server similar to Single Server.
To achieve this, we need to configure Monitoring -> Diagnostic Settings as mentioned in the below screenshot. Then we need to choose one of destination details (like Log Analytics Store) that will store our logs:
Once this is configured, the logs will flow to Azure Log Analytics workspace and we can run below query to get them.
AzureDiagnostics
| where Category == "PostgreSQLLogs"
Referenced Article: Configure and Access Logs in Azure Database for PostgreSQL - Flexible Server
Please let us know if this helps or else we can discuss further on the same.
----------
If answer is helpful please click on as it could help other members of the Microsoft Q&A community who have similar questions and are looking for solutions. Thank you for helping to improve Microsoft Q&A!