Name
|
Type
|
Description
|
Factory value
|
---|---|---|---|
AuditInfoLogDir
|
Directory name
|
The setting contains the directory path for storing the audit info files. The directory has to exist prior to starting the server. If the directory becomes unreachable or full while Audit is in progress, audit will fail with appropriate error code.
|
|
AuditInfoLogEnabled
|
Yes/No
|
Enable audit info logging into solaudit.out file.
|
No
|
AuditInfoLogFileSize
|
Number, bytes
|
Max file size for audit info file logging, used if AuditInfoLogEnabled=Yes. Audit info logging uses multiple files with each of size AuditInfoLogFileSize. Latest file is solaudit.out and older files are renamed using a pattern solaudit.<number>.out.
|
100000000 (about 100 MB)
|
AuditInfoLogMaxSize
|
Number, bytes
|
Max total size for audit info log files, used if AuditInfoLogEnabled=Yes. When max size is reached then oldest audit file is deleted.
|
1000000000 (about 1 GB)
|
AuditInfoLogFileNum
|
Number
|
Internal parameter to keep the latest audit log file number.
|
|
AuditInfoMemQueueLength
|
Number, number of records
|
Maximum memory queue length used to buffer audit info records. If audit info records are not processed when the queue gets full then applications need wait for new space in the queue.
|
10000
|
AuditInfoReadMaxWait
|
Number, seconds
|
Max time to wait audit read operation before records are discarded.
|
5
|
AuditInfoFilter
|
String
|
See separate table for details.
|
None
|
Name
|
Description
|
---|---|
params
|
Parameter values for monitored statements are included.
|
allsql
|
All SQL statements are monitored, also those not directly initiated by the user. When this filter is set for example SQL statements executed in stored procedures are included in the monitor output.
|
read
|
SQL statements that read table data are included in the monitor output. This means all SELECT statements are monitored.
|
write
|
SQL statements that write table data are included in the monitor output. This means that all INSERT, DELETE and UPDATE statements are monitored.
|
call
|
Stored procedure calls are included in the monitor output. Since it is not possible to classify procedures as read or write operations a separate filter is used for them.
|
ddl
|
SQL DDL statements are included in the monitor output.
|
dml
|
SQL DML statements are included in the monitor output.
|
Return value
|
Description
|
---|---|
Audit is active
|
Audit is active and collection of audit files to audit directory is in progress. Since the feature can not be dynamically turned off, Audit has been active since the startup of the server. To turn off the feature, modify the solid.ini and restart the server.
|
Audit not active
|
Audit is not active and has not been active since last startup.
|
Audit error, errno #
|
Audit was initially activated but has failed at some point. The error number is error caused by file system when writing audit entries failed.
|
Audit log file open failed, errno
|
Audit feature’s first write operation failed. The error number is error caused by file system when writing audit entries failed.
|