Please be aware that the content in SAP SQL Anywhere Forum will be migrated to the SAP Community in June and this forum will be retired.

SQLA 17.0.10.6160

I'm implementing database auditing to file with the commands:

SET OPTION PUBLIC.auditing = 'Off';
SET OPTION PUBLIC.audit_log = 'FILE(filename_prefix=AuditLog;max_size=10485760;num_files=100;compressed=On)';
CALL sa_disable_auditing_type( 'all' );
CALL sa_enable_auditing_type( 'connect' );
CALL sa_enable_auditing_type( 'connectFailed' );
CALL sa_enable_auditing_type( 'DDL' );
CALL sa_enable_auditing_type( 'options' );
CALL sa_enable_auditing_type( 'permissionDenied' );
CALL sa_enable_auditing_type( 'xp_cmdshell' );

No audit file is created after I issue

SET OPTION PUBLIC.auditing = 'On';

Without the compressed=On it works as desired. I've tried all variations I can think of compression=True, etc

Thanks for the help

asked 15 Nov '21, 15:23

J%20Diaz's gravatar image

J Diaz
1.2k414968
accept rate: 10%

edited 16 Nov '21, 03:05

Volker%20Barth's gravatar image

Volker Barth
40.4k364553825


With this statement, I am getting an error -1684 Trace target option 'compressed' conflicts with option 'flush_on_write'. If you add flush_on_write=Off, does the auditing start working?

As an aside, you are also disabling 'all' logging.

permanent link

answered 15 Nov '21, 16:00

Chris%20Keating's gravatar image

Chris Keating
7.8k49129
accept rate: 31%

converted 16 Nov '21, 03:06

Volker%20Barth's gravatar image

Volker Barth
40.4k364553825

That did the trick thanks very much

(15 Nov '21, 16:44) J Diaz

regarding the disabling of all logging I set this before I set specific logging with sa_enable_auditing_type('xxx') so I am sure of which types are enabled.

(15 Nov '21, 16:47) J Diaz
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×13
×7

question asked: 15 Nov '21, 15:23

question was seen: 781 times

last updated: 16 Nov '21, 03:05