Are there any default server parameters available that can be configured to terminate the session once access token expiration.
Currently, Azure Database for PostgreSQL Flexible Server does not offer a built-in server parameter to automatically terminate user sessions upon access token expiration.
Does above answer still valid to exclude from server logs ?
AFAIK Currently, Azure Database for PostgreSQL Flexible Server does not provide a built-in mechanism to exclude specific Azure Active Directory (AD) groups from server logs. However, you can manage and filter logs after they have been collected.
It's important to note that while this method enables you to filter logs during analysis, it doesn't prevent the initial logging of events related to specific AD groups. As of now, there isn't a feature within Azure Database for PostgreSQL Flexible Server to exclude logging for specific AD groups at the source.
In Azure Postgres SQL you can create alert based on custom log queries as below, and use it for your requirement to avoid getting alerts for particular error message
If this answers your query, do click Accept Answer and Yes for was this answer helpful. And,
if you have any further query do let us know.