Using Console
Using CLI
<number_of_days>
with the number of days for which you want to retain the logs, <resource_group_name>
with the name of the resource group containing your PostgreSQL server, and <server_name>
with the name of your PostgreSQL server.
For example, to set the retention period to 30 days for a PostgreSQL server named “myserver” in a resource group named “myresourcegroup”, run the following command:
Using Python