IBM Books

Administration Guide


Audit Facility Usage Scenarios

By considering the syntax of the audit facility, we can review the way the facility can be used.

Figure 21. DB2AUDIT Syntax

DB2AUDIT


The following is a description and the implied use of each parameter:

configure
This parameter allows the modification of the db2audit.cfg configuration file in the instance's security subdirectory. Updates to this file can occur even when the instance is shut down. Updates occurring when the instance is active dynamically affect the auditing being done by DB2 across all partitions. The configure action on the configuration file causes the creation of an audit record if the audit facility has been started and the audit category of auditable events is being audited.

The following are the possible actions on the configuration file:

describe
This parameter displays to standard output the current audit configuration information and status.

extract
This parameter allows the movement of audit records from the audit log to an indicated destination. If no optional clauses are specified, then all of the audit records are extracted and placed in a flat report file. If the "extract" parameter is not specified, the audit record is placed a file called db2audit.out in the security directory. If output_file already exists, an error message is returned.

The following are the possible options that can be used when extracting:

flush
This parameter forces any pending audit records to be written to the audit log. Also, the audit state is reset in the engine from "unable to log" to a state of "ready to log" if the audit facility is in an error state.

prune
This parameter allows for the deletion of audit records from the audit log. If the audit facility is active and the "audit" category of events has been specified for auditing, then an audit record will be logged after the audit log is pruned.

The following are the possible options that can be used when pruning:

start
This parameter causes the audit facility to begin auditing events based on the contents of the db2audit.cfg file. In a partitioned DB2 instance, auditing will begin on all partitions when this clause is specified. If the "audit" category of events has been specified for auditing, then an audit record will be logged when the audit facility is started.

stop
This parameter causes the audit facility to stop auditing events. In a partitioned DB2 instance, auditing will be stopped on all partitions when this clause is specified. If the "audit" category of events has been specified for auditing, then an audit record will be logged when the audit facility is stopped.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]

[ DB2 List of Books | Search the DB2 Books ]