https://github.com/pgaudit/pgaudit//
pgaudit provides detailed session and/or object audit logging via the standard PostgreSQL logging facility.
The goal of the PostgreSQL Audit extension (pgaudit) is to provide PostgreSQL users with capability to produce audit logs often required to comply with government, financial, or ISO certifications.
An audit is an official inspection of an individual's or organization's accounts, typically by an independent body. The information gathered by the PostgreSQL Audit extension (pgaudit) is properly called an audit trail or audit log. The term audit log is used in the extension documentation.
In order to support new functionality introduced in each PostgreSQL release, pgAudit maintains a separate branch for each PostgreSQL major version which will be maintained in a manner similar to the PostgreSQL project.
pgAudit versions relate to PostgreSQL major versions as follows:
Please see the Installation section below for actual package names.
pgaudit provides the following subpackages:
Install PGDG repository from: https://yum.postgresql.org/repopackages/
OS | Command |
---|---|
RHEL / Rocky Linux / AlmaLinux / Fedora | dnf install pgaudit_17 for PostgreSQL 17 |
RHEL / Rocky Linux / AlmaLinux / Fedora | dnf install pgaudit_16 for PostgreSQL 16 |
RHEL / Rocky Linux / AlmaLinux / Fedora | dnf install pgaudit_17_15 for PostgreSQL 15 |
RHEL / Rocky Linux / AlmaLinux / Fedora | dnf install pgaudit_16_14 for PostgreSQL 14 |
RHEL / Rocky Linux / AlmaLinux / Fedora | dnf install pgaudit_15_13 for PostgreSQL 13 |
Connect to the database that you want to create the extension as superuser and run:
CREATE EXTENSION pgaudit;
# Main extension
pgaudit version | PostgreSQL version(s) | OS version | Arch | Status |
---|---|---|---|---|
17 | 17 | RHEL / Rocky Linux / AlmaLinux 9 | x86_64, aarch64 | Available |
17 | 17 | RHEL / Rocky Linux / AlmaLinux 8 | x86_64, aarch64 | Available |
17 | 17 | Fedora | x86_64 | Available |
16 | 16 | RHEL / Rocky Linux / AlmaLinux 9 | x86_64, aarch64 | Available |
16 | 16 | RHEL / Rocky Linux / AlmaLinux 8 | x86_64, aarch64 | Available |
16 | 16 | Fedora | x86_64 | Available |
1.7 | 15 | RHEL / Rocky Linux / AlmaLinux 9 | x86_64, aarch64 | Available |
1.7 | 15 | RHEL / Rocky Linux / AlmaLinux 8 | x86_64, aarch64 | Available |
1.7 | 15 | Fedora | x86_64 | Available |
1.6 | 14 | RHEL / Rocky Linux / AlmaLinux 9 | x86_64, aarch64 | Available |
1.6 | 14 | RHEL / Rocky Linux / AlmaLinux 8 | x86_64, aarch64 | Available |
1.6 | 14 | Fedora | x86_64 | Available |
1.5 | 13 | RHEL / Rocky Linux / AlmaLinux 9 | x86_64, aarch64 | Available |
1.5 | 13 | RHEL / Rocky Linux / AlmaLinux 8 | x86_64, aarch64 | Available |
1.5 | 13 | Fedora | x86_64 | Available |