[Yandex Cloud documentation](../../../index.md) > [Yandex Managed Service for PostgreSQL](../../index.md) > [Step-by-step guides](../index.md) > PostgreSQL extensions and dictionaries > pgaudit

# Using pgaudit in Managed Service for PostgreSQL

The [pgaudit](https://www.pgaudit.org/) extension provides additional logging tools and enhanced auditing capabilities.

## Installing the pgaudit extension in a PostgreSQL cluster {#install}

1. [Load the `pgaudit` shared library](cluster-extensions.md#libraries-connection) into your cluster.
1. [Enable](cluster-extensions.md#update-extensions) the `pgaudit` extension in your database.
1. For users whose actions should be audited, specify the required [Pg audit log](../../concepts/settings-list.md#setting-pg-audit-log) values. For more information, see [Changing user settings](../cluster-users.md#update-settings).

Audit logs will be included in the [cluster logs](../cluster-logs.md).


Learn more about the `pgaudit` extension in [this official guide](https://github.com/pgaudit/pgaudit/blob/master/README.md).