Using Command Tags to Filter Audit Logs v13
Each entry in the log file except for those displaying an error message contains a command tag. A command tag is the SQL command executed for that particular log entry. The command tag makes it possible to use subsequent tools to scan the log file to find entries related to a particular SQL command.
The following is an example in XML form. The example has been formatted for easier review. The command tag is displayed as the command_tag
attribute of the event element with values CREATE ROLE
, ALTER ROLE
, and DROP ROLE
in the example.
The following is the same example in CSV form. The command tag is the next to last column of each entry. In the listing, the column that appears empty (""), would be the value of the edb_audit_tag
parameter if provided.
Each audit log entry has been split and displayed across multiple lines, and a blank line has been inserted between the audit log entries for more clarity in the appearance of the results.