• Task
  • Version ยท 6.0
  • Leading practices

Audit and compliance solution guide: document all changes

Last updated: August 11, 2026

Procedure

1

Enable the DATABASECHANGELOGHISTORY table.

DBCLH Syntax

liquibase.dbclhistory.enabled: true

globalArgs: { dbclhistory-enabled: "true" }

liquibase
--dbclhistory-enabled=true update
--changelog-file=example-changelog.xml

LIQUIBASE_DBCLHISTORY_ENABLED=true
2

Turn on structured logging.

Set the Structured Logging --log-format property to JSON or JSON_PRETTY with one of the provided methods.

Structured logging format syntax

liquibase --log-format=JSON or JSON_PRETTY

liquibase.logFormat=JSON or JSON_PRETTY

LIQUIBASE_LOG_FORMAT=JSON or JSON_PRETTY
3

Set the Structured logging --log-level property to a value.

4

Set the Structured Logging --log-file properties so the log data is sent to a file rather than to the console.

5

Enable the Observability reports.

loading

loading

liquibase diff \
    --reports-enabled=true \
    --report-name=my_diff_report.html

loading

liquibase checks run \
    --reports-enabled=true \
    --report-name=my_checks_report.html

loading

liquibase rollback-count 1 \
    --reports-enabled=true \
    --report-name=my_rollback_report.html

loading

Next steps