Is it possible (undocumented feature?) to limit the size of Web service client information (-zoc) file?
Like -os for the database server message log file and -zs/-zn for the request log file.

asked 24 Apr, 04:49

Ilia63's gravatar image

Ilia63
776273350
accept rate: 16%


I scanned the code... and there is currently no method to automatically limit the size of the HTTP client log file.

The method suggested by Volker - use an event to rotate the log - would be your best solution. If checking the size of the file does not work (due to OS not updating the meta data (size) of the file) then you could just decide to rotate the log every fixed period of time regardless of its size. E.g. you could change the file name every 6, 12, or 24 hours depending on your situation / requirements. You can use

call sa_server_option( 'WebClientLogFile', newname );

to set a new name for the log file.

permanent link

answered 24 Apr, 09:01

Mark%20Culp's gravatar image

Mark Culp
23.2k9132272
accept rate: 40%

I don't think so but you could of course create an event that checks the file size of the log and switches to a new log when a particular size is reached (and then possibly remove the previous one). sa_server_option() will be of help here.

permanent link

answered 24 Apr, 05:01

Volker%20Barth's gravatar image

Volker Barth
30.8k308456665
accept rate: 32%

converted 24 Apr, 09:04

For ASA12, I'm trying to get the zoc-file size using a proxy table:
CREATE SERVER d0;...
CREATE EXISTING TABLE t0 AT 'd0;;;.';
SELECT "size" FROM t0 where file_name=...
But before select I have to do refresh of zoc-file, i.e.:
SELECT xp_read_file( 'ASAWeb.txt',1 );
Otherwise, the zoc-file size remains zero.

(24 Apr, 08:21) Ilia63
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:

×412
×203
×21

question asked: 24 Apr, 04:49

question was seen: 94 times

last updated: 24 Apr, 09:01