# The Difference Between Postgres Logging and PGAudit

DevFeed: [The Difference Between Postgres Logging and PGAudit](<https://devfeed.tech/articles/the-difference-between-postgres-logging-and-pgaudit-5734.md>)

Original publisher: [Read original article](<https://neon.com/blog/postgres-logging-vs-pgaudit>)

Author: Monica Steinke

Published: 2025-05-28T20:26:29Z

Content type: article

Language: en

Sources: [Blog -- Neon Docs](<https://devfeed.tech/sources/blog-neon-docs.md>)

Topics: [Logging](<https://devfeed.tech/topics/logging.md>), [PostgreSQL](<https://devfeed.tech/topics/postgresql.md>), [Monitoring](<https://devfeed.tech/topics/monitoring.md>), [Databases](<https://devfeed.tech/topics/databases.md>)

Tags: [audit](<https://devfeed.tech/tags/audit.md>), [compliance](<https://devfeed.tech/tags/compliance.md>), [config](<https://devfeed.tech/tags/config.md>), [hipaa](<https://devfeed.tech/tags/hipaa.md>), [iso](<https://devfeed.tech/tags/iso.md>), [logging](<https://devfeed.tech/tags/logging.md>), [logs](<https://devfeed.tech/tags/logs.md>), [monitoring](<https://devfeed.tech/tags/monitoring.md>), [pci-dss](<https://devfeed.tech/tags/pci-dss.md>), [postgres](<https://devfeed.tech/tags/postgres.md>), [process](<https://devfeed.tech/tags/process.md>), [server](<https://devfeed.tech/tags/server.md>)

## AI overview

The article compares PostgreSQL's built-in logging with PGAudit. PostgreSQL logging supports operational monitoring and troubleshooting, while PGAudit is designed for compliance auditing with detailed records of database access and changes. It describes PGAudit's session and object auditing modes and the information recorded in audit log entries.

## Source excerpt

Postgres has some excellent internal logging capabilities. With a simple logging_collector = on and a couple of other config flags, you can get an incredibly detailed picture of your Postgres operations, from individual SQL statements to connection attempts, error messages, and l...