Configure audit log paths



Specify location to store audit archived and active logs files.

Operation


DB2 audit log files come in two types: active and archived.


Execute the commands shown in the right pane from DB2 command window.

Solution


Windows specific instructions

SECADM Pat performs the following steps in a DB2 CLP as shown in the right pane. Replace C:\Audit with a path you like.

  1. Sets the archived log path to C:\Audit.
  2. Execute db2audit configure archivepath C:\Audit. This sets the archived log path to C:\Audit.
  3. Execute db2audit configure datapath C:\Audit. This sets the active log (data path) path to C:\Audit.


Linux specific Instructions

Archive path must be created, with permissions to write to it.Create audit archive directory as follows:

  1. mkdir $HOME/Audit.
  2. Execute db2audit configure archivepath $HOME/Audit. This sets the archived log path to $HOME/Audit.
  3. Execute db2audit configure datapath $HOME/Audit. This sets the active log (data path) path to $HOME/Audit.