How do I modify the location of the db2audit file output?
Technote (FAQ)
Problem
Problem #1:
The db2audit.log file gets very large and fills the file system. Is there any workaround which allows me to store the file in a different location?
Problem #2:
When using the db2audit command with the 'extract delasc' option, the resulting output is written to the instance owner's home directory. Given the large amount of information contained in the output audit file, the instance owner's home directory fills up. Is there any workaround which allows me to store the file in a different location?
Cause
The db2audit file grows very large.
Solution
Solution for problem #1:
You can create a symbolic link from db2audit.log in the security directory to a db2audit.log file in another directory or filesystem. By doing so, this will allow the security directory to reside on a large filesystem outside of the instance owner's home directory.
Solution for problem #2:
Workarounds are:
1. Extract each category one at a time, and then move the output file in another file system.
2. Perfrom an audit extract more frequently so that the output file is much smaller. Then copy the audit output file to another file system.
Copyright and trademark information
IBM, the IBM logo and ibm.com are trademarks of International Business Machines Corp., registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and trademark information" at www.ibm.com/legal/copytrade.shtml.
Rate this page
Please take a moment to complete this form to help us better serve you.