What do I need to know about Log Rotation?

Zeus keeps a number of logs including the error log, as well as (optionally) a request log and a cgi error log. Of these, only the request log is rotated, and even this is only rotated daily. Should you wish to write your own log-rotation scheme, the suggested procedure is as follows:

  1. If necessary, disable request log rotation by changing the setting tuning!modules!log!auto_rotate to "no".

    (Please note that Zeus must be restarted by running ZEUSHOME/restart-zeus before this change will take effect)

  2. Rename ('mv') the logfile in question to another name/location on the same filesystem.

    Zeus will continue to write to this logfile, in it's new location, for anything up to 10 seconds.

  3. Wait 10 seconds - after which all locks and filehandles on the original logfile will have been released.

  4. A new logfile with the name of the original should now have been automatically created by Zeus (so long as there has been data to log).

  5. It is now safe to move the original logfile to whatever archive location you wish, and can safely leave the original filesystem.

Content Manager [Administrator] 19 September 2005  Permalink  
Download Free Trial

Recent Articles

Other Resources



www.zeus.com