Skip to content

Rate this page
Thanks for your feedback
Thank you! The feedback has been submitted.

For help, click the link below to get free database assistance or contact our experts for personalized support.

Reading Audit Log Filter files

Audit Log Filter exposes a SQL API to read audit files in JSON or JSONL only. Layout and the JSONL option appear in Audit Log Filter format - JSON and JSONL and Audit Log Filter file format overview.

Set audit_log_filter.format to match. audit_log_filter.file defines the path, base name, and suffix that readers use to locate files.

When a file no longer matches the pattern, readers ignore the file.

Functions used for reading the files

The following functions read JSON or JSONL audit files:

Start a read with a bookmark or an explicit start position:

SELECT audit_log_read(audit_log_read_bookmark());

Continue from the current cursor:

SELECT audit_log_read();

The read sequence ends when the session ends or when you call audit_log_read() with a different argument.

Additional reading