Which PCI DSS requirement 10 duties PostgreSQL and pgAudit can cover
If your team runs PostgreSQL that holds cardholder data, you need evidence for PCI DSS requirement 10, and PostgreSQL logging with pgAudit covers most of the database-side duties but not the whole requirement. The database can record individual user access to cardholder data, administrator actions, invalid access attempts, changes to authentication credentials, and the creation and deletion of system-level objects. It cannot cover the operating system, the network, the application layer, or the protection and review of the logs themselves, which requirement 10.3 also addresses. Start by mapping each sub-requirement under 10.2.1 to a named source, so you can see which duties the database must carry and which sit elsewhere in your environment.
Whether database logging is required at all depends on your architecture. PCI SSC FAQ 1081 says operating system, database and application logs may be combined as appropriate, and that database logging may be unnecessary if other logs already capture all individual access to cardholder data. Confirm that claim against your own logs before you rely on it, because an assessor will test whether those other logs really record every access. Write down the decision and its reasoning, since that record is part of the evidence. DeployOpen prepares the PostgreSQL configuration, pgAudit settings and supporting evidence, but it does not issue validation. Your Qualified Security Assessor or self-assessment, and the payment brands that run any enforcement, decide what counts as compliant for your environment.
Mapping PCI DSS 10.2.1 and 10.2.2 to PostgreSQL logging settings
This table maps each PCI DSS v4.x logging requirement in scope to the PostgreSQL or pgAudit setting that produces the event, and to the gap an assessor is likely to question. Read the middle column for what to configure and the last column for what must come from outside the database. Log retention and protection under 10.3 and 10.5.1 sit in the final row because the database does not handle them.
| Requirement | PostgreSQL or pgAudit setting | Gap to close outside the database |
|---|---|---|
| 10.2.1.1 Individual access to cardholder data | pgAudit object logging with pgaudit.log set to read and write, plus pgaudit.role. Add %u to log_line_prefix. | Shared application accounts hide the person. Confirm each user has a named role or that the application passes user identity. |
| 10.2.1.2 Administrator actions | pgaudit.log set to role and ddl, log_connections and log_disconnections for superuser sessions. | Operating system logins and sudo activity on the database host. Capture these with OS audit logging. |
| 10.2.1.3 Access to audit logs | No PostgreSQL setting records reads of the server log files. | File audit rules on the log directory, such as auditd, and restricted read permissions for the postgres group. |
| 10.2.1.4 Invalid logical access attempts | log_connections and the server log entries for failed password or certificate authentication. | Failed attempts through PgBouncer or other poolers need their own logs, so configure and forward them. |
| 10.2.1.5 Changes to authentication credentials | pgaudit.log set to role captures CREATE, ALTER and DROP ROLE and GRANT statements. | Edits to pg_hba.conf, TLS certificates and identity provider settings need file integrity monitoring or change control. |
| 10.2.1.6 Initialization, stopping or pausing of logs | Server start and stop messages appear in the server log. Changes to shared_preload_libraries and pgaudit settings require a restart or reload. | Changes to postgresql.conf and the logging collector configuration need file monitoring. Confirm the change is recorded somewhere outside the database. |
| 10.2.1.7 Creation and deletion of system-level objects | pgaudit.log set to ddl captures CREATE and DROP for databases, schemas, tables and roles. | Objects created by extensions or migration tools still need change records from the pipeline or ticketing system. |
| 10.2.2 Log entry fields | Timestamp from %m, client address from %h, user from %u, database from %d, pgAudit class in the audit field, errors logged at the configured log_min_error_statement level. | Confirm success or failure is recorded for each audited event in your version. Pooled sessions may lose client origin unless the pooler or application passes it. |
| 10.3 and 10.5.1 Log protection and 12-month retention | Not handled by PostgreSQL. Use logging_collector or syslog to produce files for forwarding. | Forward logs promptly to a central server, keep 12 months with the latest three months immediately searchable, and limit read access and monitor file integrity. |
Which database events pgAudit and PostgreSQL logging must capture
PCI DSS requirement 10.2.1 lists the event classes that audit logs must capture for systems in the cardholder data environment. For a PostgreSQL database, these map to different logging sources, and no single setting covers all of them. Each card below names the likely source and what to confirm in your environment.
Individual user access to cardholder data
This covers each read or change of stored cardholder data by a named user. pgAudit session or object logging is the most likely source, configured to record statements that touch the tables holding PAN. Standard statement logging records the SQL but not always the object touched, so confirm that pgAudit object auditing names the cardholder tables and that every application service account is traceable to a person or a documented process. Note that shared application accounts weaken this event class.
pgAudit repositoryAdministrator actions
This covers superuser and privileged role activity, such as schema changes, grants, configuration edits and direct data fixes. pgAudit session logging with the DDL and ROLE classes, combined with logs of server configuration changes, is the usual source. Confirm that administrative sessions use named accounts rather than a shared postgres login, because audit entries for a shared account cannot show who acted. Operating system logs for shell access to the database host belong here too.
Access to audit logs
Requirement 10.2.1.2 asks you to record access to the audit trail itself. PostgreSQL logging cannot record reads of its own log files, so this event usually comes from OS-level logging on the database host, such as file access auditing on the log directory and the pgaudit log destination. Confirm which user groups can read the log directory and whether that access is itself logged.
Invalid access attempts
This covers failed logins and rejected connections. Standard PostgreSQL logging supplies these entries when log_connections and log_disconnections are enabled, and authentication failures appear in the server log by default. Confirm that the log_connections setting is on, that failed attempts are written with the client address, and that the log captures attempts against accounts that have no database role. Denied object access by an authenticated user is a separate event, so check it against pgAudit or error logging as well.
Authentication methods docsChanges to credentials and authentication
This covers creating roles, changing passwords, altering authentication methods and editing pg_hba.conf. Role and password changes appear in pgAudit when the ROLE class is enabled, and pg_hba.conf edits are captured by OS file auditing or configuration management, since the database does not log file edits itself. Confirm that password changes are logged without recording the password value, and that the pg_hba.conf file is covered by change detection.
Log initialization, stopping and object creation or deletion
This group covers starting or stopping logging, and creating or deleting system-level objects such as databases, schemas, tables and extensions. Object lifecycle events come from pgAudit DDL logging, while log stop and start events are usually visible in the operating system service records and in the server log's startup and shutdown entries. Confirm that a stopped audit facility produces an alert rather than silence, since a gap in logging is itself a finding.
What each audit log entry needs under PCI DSS 10.2.2
Requirement 10.2.2 of PCI DSS v4.x sets the minimum content of each audit log entry: the event type, the date and time, whether the event succeeded or failed, where it originated, and the identity of the affected data, component, resource or service. Plan the log format around those six fields before you touch any settings, because PostgreSQL does not produce all of them in one place by default. The log_line_prefix setting controls the header of each line written to the server log. A common starting point includes %m for the timestamp with milliseconds, %u for the user, %d for the database, %r for the client host and port, and %p for the process ID, which together cover time, identity, origination and resource. Event type and success or failure usually come from the message text itself, so check that each line carries an explicit message class rather than assuming it does.
Connection logging supplies much of the origination and success data. Settings such as log_connections and log_disconnections record authentication attempts and session ends, and failed logins appear as errors in the server log. pgAudit adds the event detail the standard log lacks: its pgaudit.log setting selects classes such as READ, WRITE, DDL, ROLE and MISC, and it records the statement and the object touched. Be aware that pgAudit output is an ordinary log message, so the affected object is in the text, while fields like the source address depend on the log_line_prefix you chose. Where a field is not produced by default, such as a server-side hostname or a field your SIEM expects under a specific name, add it in the central collector during parsing and document that mapping. Confirm the exact pgAudit behavior for your version in the pgAudit repository.
Test the setup by generating one known event of each type (a successful login, a failed login, a privileged DDL statement, a read of a cardholder table) and reading the resulting entry in the collector, not on the database host. For each entry, tick off the six fields of requirement 10.2.2 and note which ones were supplied by PostgreSQL, which by pgAudit, and which by the collector. Any field missing from a sample is a gap to close before the assessor's sample is taken. Keep these sample entries as evidence, and confirm with your assessor which version of PCI DSS applies to your assessment on the PCI Security Standards Council standard page.
When database-level logging can be skipped under PCI SSC FAQ 1081
PCI SSC FAQ 1081 says operating system, database and application logging may be combined as appropriate. It also says database logging may be unnecessary if other logs already capture all individual access to cardholder data. The FAQ is guidance on how to read the requirement, not a waiver. The question it answers is narrow: does something in your environment already record every person or process that reads or changes cardholder data, with the detail requirement 10.2.2 expects? If yes, the database log may be redundant for that purpose. If no, it is not optional. Note that the FAQ speaks to individual access to cardholder data, so administrator actions, audit log access and changes to credentials still need a clear home in your logging design even when database logs are dropped.
- Scope of the allowance: It covers individual access to cardholder data, not every category in requirement 10.2.1.
- Combination is permitted: Operating system, database and application logs can be consolidated into one central review.
- Redundancy must be real: The FAQ does not accept a belief that other logs probably cover access.
- Administrator events remain: Database administrator actions, log access and credential changes still need records.
- Read the FAQ with your assessor: Ask how your assessor interprets "all individual access" in your architecture.
Before you change anything, confirm which requirement 10 events your assessor expects to see from the database itself.
Some environments place cardholder data behind an application or service layer that already records every user action with the identity, time, outcome and affected record. In that design, direct database connections may be limited to a small set of service accounts, and no person connects with a query tool. The application log, identity provider log or network log may then capture each individual access. This is the situation the FAQ describes. It still needs proof. A service account connecting to the database hides the individual user, so the application must pass that identity into its own log for each read and write. If it does not, the other logs do not capture individual access.
- Application-mediated access: The application writes the user identity, event type and affected record for each cardholder data read or write.
- No shared database accounts: Individuals do not share a service account that would hide who ran a query.
- Direct access is blocked: Analysts and administrators cannot reach the database without a logged path.
- Log completeness is tested: Test that a sample of reads and writes appears in the central log with the required fields.
- Log outage is detected: If the application log stops, someone is alerted, because the other logs are now your only record.
Confirm that every route to the cardholder tables is covered by a logging source you can show to an assessor.
Many databases are reached through query tools, reporting connections, batch jobs or direct administrator sessions that bypass the application. In those cases the PostgreSQL log, with pgAudit configured, may be the only place that shows which role read or changed cardholder data. Operating system logs record a login to the server but not the SQL statement or the table touched. Network logs show connections but not the query. If any of these routes exists, database-level logging cannot be dropped for that path. Dropping it would leave individual access unrecorded, which is the gap requirement 10.2.1 is written to prevent.
- Direct query tools: Analysts or support staff who run SQL through a client need database-level records.
- Batch and reporting jobs: Scheduled jobs that read cardholder data need their role and statements logged.
- Administrator sessions: Superuser and schema changes must be recorded at the database.
- Shared or legacy accounts: Where the database cannot tell individuals apart, the database log may be the only identifier you have.
- Partial coverage is not enough: If one route bypasses the application, the database log must cover that route.
List every login path to cardholder tables, and mark which ones have no other logging source that records the statement.
If you intend to drop database-level logging for cardholder tables, the burden is on your team to show that the other logs capture all individual access. The evidence should be specific: a documented mapping from each access route to the log source that records it, the required fields present in that source, and a test showing that known reads and writes appear. Assessors will ask for the test, not the design intent. Keep the mapping under change control, because a new reporting tool or a new database user can create a path that the mapping no longer covers. Review the mapping when the architecture changes and when the scope of the cardholder data environment changes.
- Route inventory: Record every application, service account, human login and batch job with access to cardholder data.
- Source mapping: For each route, name the log source, its retention and who can read it.
- Field check: Confirm each source records event type, date and time, success or failure, origin and affected data.
- Negative test: Run a direct query outside the application and confirm the other logs show a gap or the query is blocked.
- Periodic review: Repeat the mapping after changes to access paths, applications or scope.
Ask your assessor to confirm in writing that this evidence set is sufficient for your environment before you disable database logging.
Configuring PostgreSQL and pgAudit for requirement 10
This sequence turns a list of in-scope databases into audit logging that captures the required events, writes the required fields, and reaches a protected central store where access and changes are controlled. Each step closes with a check, so the team can show an assessor how the configuration was verified.
Confirm in-scope databases and roles
Start by listing every PostgreSQL cluster that stores, processes or could affect cardholder data, along with the roles that connect to it: application service accounts, human users, administrators and replication users. Your QSA or internal assessor should agree the boundary before any setting changes. Record which roles can read cardholder tables, which hold superuser or equivalent rights, and which can change authentication settings. The output is a signed inventory that becomes the reference for every later test. Confirm with your assessor whether any databases outside the boundary connect to in-scope ones, because those connections may also need logging.
Install and preload pgAudit on a supported version
Choose a PostgreSQL major version that is still supported under the PostgreSQL versioning policy, then install the matching pgAudit build from your package source or a build pipeline you control. Add pgAudit to
shared_preload_librariesinpostgresql.conf, restart the server, and runCREATE EXTENSION pgauditin each database that needs object-level logging. Confirm the extension version matches the server major version. The check isSHOW shared_preload_librariesreturning pgaudit on every node, andSELECT * FROM pg_extension WHERE extname = 'pgaudit'returning a row in each in-scope database. Keep the installation record for change management.Set session and object audit classes
Set
pgaudit.logto the classes that match your requirement, typically covering DDL, role changes, misc and write activity for session logging, and usepgaudit.roleor object-level grants so that reads of cardholder tables are recorded. Session logging captures statements by class, while object logging captures statements that touch named tables. Avoid logging full parameter values where the tool allows it, because the log itself becomes sensitive data. Confirm with the team that owns the application which statements carry card data. The check is running a test read and a test privilege change and confirming that each appears in the server log with the expected class tag.Configure log_line_prefix and connection logging
Set
log_line_prefixso each entry carries a timestamp with time zone, process ID, user, database, client address and session identifier. Turn onlog_connections,log_disconnectionsand failed-authentication logging so that invalid access attempts appear in the log. Setlog_statementto avoid duplicating what pgAudit already records. Verify that the prefix carries the fields needed to meet the entry content requirement: event type, date and time, success or failure, origin and affected resource. The check is a deliberate failed login and a deliberate successful login, then reviewing both entries to confirm every required field is present.Route logs to a protected central server
Forward PostgreSQL and pgAudit output to a central log host using a logging agent or syslog transport that you operate. The database host should not be the only copy. On the central host, restrict read access to the people whose job needs it, make the log files append-only or immutable for the database service, and set up backups of the log store. Confirm that file ownership and permissions prevent the database service account from editing old entries. The check is writing a test entry on the database, confirming it arrives on the central host within the agreed pipeline, and confirming that a non-authorized account cannot read or change it.
Add change detection on audit logs
Enable file integrity monitoring or change detection on the audit log directory and on the configuration files that control logging, including
postgresql.conf,pg_hba.confand the pgAudit settings. Alerts should go to a team that is not the database administrator group. Confirm which tool your team uses and how alerts are reviewed. The check is changing a test value in a monitored file in a non-production environment, confirming an alert is raised, and recording the alert and the response in the evidence folder.Test a sample of each event type
Build a test script that performs one representative action for each event class: an application read of cardholder data, an administrator action, an audit log read, a failed login, a credential change, a logging start or stop, and the creation and deletion of a schema object. Run it in a non-production copy, then check that each event appears in the central log with the required fields and the correct success or failure value. Keep the script, its output and the reviewed entries as evidence. Repeat the test after each PostgreSQL minor update or pgAudit upgrade, because a change in either can alter what is logged.
Document the configuration and confirm with the assessor
Write a configuration record that lists each setting, its value, the reason for it, the owner and the date it was last verified. Include the in-scope inventory, the pgAudit classes chosen, the central log location and the access list. Share the record and the test evidence with the QSA or internal assessor before the assessment window so they can test it against the requirement. Confirm with the assessor how they want samples presented and how long the logs must remain available. The output is a reviewed configuration record that the assessor has accepted as the basis for testing.
Evidence an assessor will ask to see for requirement 10
An assessor tests requirement 10 by asking for configuration, sample log entries and proof that logs are protected and kept for the required period. Each card below is an artifact that shows the control operates, and the assessor chooses which entries and periods to sample, so keep them in a form you can produce for any date range.
pgAudit and PostgreSQL logging configuration
Keep the exact settings in force for the audit period: the shared_preload_libraries entry that loads pgAudit, the pgaudit.log and pgaudit.log_catalog values, and the logging_collector and log destination settings in postgresql.conf. Store them under version control with change dates, so you can show what was logging on any day an assessor picks. Check that the configuration covers administrator actions and access to audit logs, not only data reads.
Sample log entries with 10.2.2 fields
Pull representative entries and confirm each one records the event type, date and time, success or failure, origin, and the affected data or resource. PostgreSQL's default log lines may not carry every field, so show how your format or pgAudit output maps to each element. Keep a few entries for failed logins and privilege changes, since assessors often pick those first.
Central log backup and transfer records
Show that logs leave the database server promptly and land on a secure central system. Keep transfer job configurations, schedules, and records of successful copies, along with any failed transfers and how they were resolved. Confirm the central store is separate from the database host so a compromised server cannot erase its own history.
Read-access lists for audit logs
Produce the list of people and service accounts that can read audit logs, and tie each entry to a documented job need. Include the operating system groups and file permissions on the log directory as well as access rights on the central store. Review the list on a set schedule and keep the signed review, because assessors check that read access is limited to people who need it.
File integrity monitoring output
Keep the output from the file integrity or change detection tool that watches audit logs and their configuration. Records should show alerts on modification or deletion, how alerts were triaged, and who closed them. Test the tool with a deliberate change to a test file so you can show that it detects edits to the log files.
Twelve-month retention and three-month access record
Show that audit history is kept for at least 12 months, with at least the most recent three months immediately available for analysis. Keep retention policy settings, storage lifecycle rules, and a dated inventory showing that older logs were archived rather than deleted early. Test a restore of an archived month so you can show the logs are readable when requested.
Keeping 12 months of audit history and protecting it
PCI DSS Requirement 10.5.1 requires audit log history to be retained for at least 12 months, with at least the most recent three months immediately available for analysis. For a PostgreSQL estate, that means the log pipeline must hold a full year of pgAudit and server log output, and the newest three months must be searchable without restoring anything from cold storage. Confirm with your QSA or internal assessor how they will test the three-month availability window, since it is the part most often missed when teams plan only for disk capacity.
Requirement 10.3 sets the protection rules. Read access to logs must be limited to people whose job needs it, log files must be protected from modification, logs must be promptly backed up to a secure central server, and file integrity monitoring or change detection must cover the audit logs. In practice, the database host should ship its logs off the machine quickly and keep only a short local buffer, so that an attacker or a faulty administrator who controls the database server cannot quietly edit its own history. Decide early which system is the central log store, who holds read rights there, and which tool detects changes to the stored files.
The main trade-off is between local hot storage and archive. Keeping the last three months on fast local or search storage makes analysis quick but consumes the most capacity and makes the database host a target. Moving older months to a write-once or access-restricted archive reduces cost and risk but adds retrieval time, which you must be able to show is acceptable. Sizing depends on event volume, and pgAudit can produce a very large volume if it logs every statement on busy cardholder tables. Measure a representative week of logs in a test environment, multiply to a quarter and to a year, and size both tiers from that measured figure rather than from an estimate.
What PostgreSQL and pgAudit do not cover for PCI DSS
Audit logging in PostgreSQL is one input to PCI DSS requirement 10, not the whole requirement. The cards below cover the assessment itself, scoping, logging outside the database, time, log review, integrity monitoring and the approach choice, and each one needs a named owner before the audit starts.
The assessment and attestation
Your PCI DSS validation is a Report on Compliance completed by a Qualified Security Assessor, or a Self-Assessment Questionnaire, each backed by an Attestation of Compliance. A working pgAudit configuration does not produce either document. Confirm with your acquirer or payment brand which validation type applies to you, and who signs the attestation on your side.
Compliance certificates FAQCardholder data environment scoping
Logging only covers the systems you identify. Before you rely on database logs, map every PostgreSQL instance, replica, backup copy, reporting database and admin workstation that stores, processes or can affect cardholder data. Replicas and dump files are easy to miss and often sit outside the logging design. Assign the scoping review to a named owner who re-runs it after architecture changes.
Operating system and network logging
PCI SSC guidance allows operating system, database and application logs to be combined, and database logging can be unnecessary if other logs already capture all individual access to cardholder data. That only holds if those other logs exist. Check that host authentication, sudo, privileged shell sessions and firewall events reach the same central log store as pgAudit output.
Time synchronization
Log entries are only useful in an investigation if their timestamps agree. Confirm that the database host, its replicas, the log collector and any identity provider use the same reliable time source, and that the PostgreSQL log_timezone setting is recorded consistently. Ask your platform team to show drift monitoring, not only the initial configuration.
Log review and alerting
Requirement 10 expects logs to be reviewed, not just written. pgAudit can record privileged and object activity, but someone must define which events are reviewed, how often, and what triggers an alert on invalid access attempts or changes to credentials. Document the review procedure, the reviewer's job need for read access, and the evidence each review leaves behind.
File integrity monitoring and the approach choice
Protecting audit logs from modification requires file integrity monitoring or change detection tooling. PostgreSQL does not supply that tooling, so select and operate it separately. Also decide whether each requirement will meet the defined approach or the customized approach. The customized approach needs documented analysis and evidence, so choose it only if your team can maintain that work.
How database audit events reach the protected central log store
Sessions from applications and administrators reach PostgreSQL, where pgAudit and standard logging write entries to the server log on the database host. A shipper forwards those entries across the trust boundary to a central store with restricted read access. Integrity monitoring watches that store, and retention and backup complete the path. Check that the shipper cannot be edited by database administrators, that read access follows job need, and that the store holds at least 12 months of history with the most recent three months immediately available.
Audit events travel from database sessions through the host into a central store that the database host cannot edit.
Questions buyers ask before hiring help with PCI DSS requirement 10
What does PCI DSS requirement 10 logging work cost, and what drives it?
The cost depends on the scope of the work, not on a list price. DeployOpen does not publish prices. A quote follows from a written scope that sets out which databases hold or can reach cardholder data, how many database clusters and environments are involved, the expected log volume, and whether logs must feed an existing SIEM or log platform. Each of these changes the work: more databases mean more role and logging configuration to review, higher log volume means more tuning of what pgAudit records, and an existing SIEM means parsing, forwarding and alert rules must be built and tested against it. Ask for the quote to separate one-time configuration and testing from any recurring retainer for log review or ongoing support.
How long does PCI DSS audit logging setup take?
Duration depends on the environment and how many systems must be covered, so no fixed timeline applies. Shorter engagements usually involve one database cluster with an existing log pipeline. Longer ones involve several clusters, multiple teams with different administrator access, legacy applications that connect with shared accounts, or a SIEM that must be extended. Before work starts, the written scope should state the phases, the environments included, and the dependencies on your team. Ask for the schedule to show when the retention test and the review of captured events are scheduled, because those steps are often the ones that slip.
What must our internal team provide before the work starts?
Your team needs to supply four things: access, owners, data and an assessor contact. Access means administrative accounts on the database hosts, a test environment that mirrors production logging settings, and read access to the current pg_hba.conf and PostgreSQL configuration. Owners are named people who can approve changes to roles, log levels and retention for each database. You also need an inventory of which databases store, process or could affect cardholder data, and which applications and service accounts connect to them. Finally, identify the QSA or internal assessor who will review the evidence, so the logging design can be checked against their expectations before go-live.
Can our team meet PCI DSS requirement 10 alone using the official standard and pgAudit documentation?
Yes, a capable internal team can do this without a partner, provided it has the time and the skills. The PCI SSC publishes the standard and its FAQs, and the pgAudit repository documents its settings and how it writes to the PostgreSQL logging facility. The harder part is applying them: deciding which events each database must record, mapping every entry to the required fields, confirming that log files cannot be changed by administrators, and proving that 12 months of history is kept with the most recent three months available for analysis. Teams that build this in-house should plan a review with their assessor before the evidence is needed, because interpretation of scope and of when database logging may be unnecessary is the assessor's call.
Which logging problems usually cause findings at assessment?
Most findings come from gaps rather than from missing tools. The common ones are:
- Administrator actions or changes to authentication credentials that are not captured in any log.
- Log files that privileged users can read widely or modify, without integrity monitoring or prompt backup to a central server.
- Entries that lack the event type, time, success or failure, origin, or identity of the affected resource.
- Retention that was configured for a shorter period than the 12-month requirement, or no proof that the most recent three months can be searched quickly.
Check each of these against your own configuration before the assessment, and keep a record of the test that shows each control working.
Does DeployOpen issue a PCI DSS validation or certificate for our database logging?
No. DeployOpen prepares systems, controls and evidence for compliance assessments, but it does not issue reports, attestations or certifications. A Report on Compliance is completed by a Qualified Security Assessor, and a Self-Assessment Questionnaire is completed with an Attestation of Compliance. The PCI SSC does not recognize certificates as validation. In practice, DeployOpen configures the logging, documents how each requirement is met, and assembles evidence such as configuration exports, sample log entries and retention checks. Your assessor or acquirer decides whether that evidence satisfies the requirement and what validation your organization must submit.
Do we still need database logging if our operating system or application logs already capture access?
It depends on whether those other logs capture every individual access to cardholder data. The PCI SSC's FAQ 1081 says operating system, database and application logging may be combined as appropriate, and that database logging may be unnecessary when other logs already record all individual access to cardholder data. Verify this claim rather than assume it. Map each cardholder data access path, including direct administrator sessions and reporting tools, to a log source, and confirm the logs show the required event details. If a direct database session can read cardholder data without leaving a record outside the database, database-level logging is usually needed for that path.
Which PostgreSQL version should we run for the logging setup?
Choose a version that is still supported throughout the period you must retain logs and keep patched. PostgreSQL 18 is supported until November 14, 2030, 17 until November 8, 2029, 16 until November 9, 2028, 15 until November 11, 2027, and 14 until November 12, 2026. Versions 13 and earlier are no longer supported. Because logs must be kept for at least 12 months, an end-of-support date within that window means an upgrade will be needed while the retained logs are still in use. Plan the logging design so it survives a major upgrade, and confirm with your pgAudit build that it supports the chosen server version.
How DeployOpen scopes and delivers PCI DSS logging configuration
DeployOpen plans, implements, hardens and documents self-hosted PostgreSQL inside the client's own infrastructure, so audit logging for PCI DSS requirement 10 is configured where the cardholder data environment actually runs. Engagements start with a written scope that states which logging decisions are in and which evidence the client's assessor will need to see.
How we scope
- Written scope lists the PostgreSQL clusters, databases and roles that hold or can reach cardholder data.
- We map which Requirement 10.2.1 event types pgAudit and server logging must capture for each database.
- Scope records whether database logging is needed or whether other logs already cover individual cardholder data access.
- Engagements are fixed-scope, with deliverables and timelines agreed in writing before work begins.
How we build
- We configure pgAudit and PostgreSQL logging so each entry carries the fields Requirement 10.2.2 describes.
- Log files are protected from modification, read access is limited by job need, and logs ship to a central server.
- We set up file integrity monitoring or change detection on audit logs as part of the build, not as an afterthought.
- Retention is configured for at least 12 months with the most recent three months immediately available.
How we hand over
- You receive the configuration, role and privilege map, and a log field reference mapped to the requirement sections.
- Test runs prove that sample access, invalid logins and admin actions produce the expected entries.
- Runbooks cover log review, retention checks, and how to answer an assessor's request for sampled log records.
- We document which evidence comes from the database and which must come from your SIEM or other systems.
How we support
- Ongoing support and continuous testing are available as a retainer after handover.
- Retainers can cover pgAudit and PostgreSQL upgrades, so logging stays intact through version changes.
- We help you prepare evidence for your Qualified Security Assessor or internal assessor. We do not issue attestations or validation ourselves.
- Scope changes, such as a new database or reporting role, are quoted as written amendments to the agreed scope.

