Jump to content
The Uniform Server Community

error.log and access.log


falonofthetower
 Share

Recommended Posts

The quickest way is to stop Apache, rename both logs to what you'd like to keep them as (such as access-2011-12-12.log) and then zip/7z the file to save space. You can then move it to somewhere else for later analysis. When you restart Apache, it will create new, empty logs.

 

The more complex but automatic way is to run rotatelogs.exe, which is part of the Apache program set. This is done by changing the CustomLog directive in httpd.conf. I won't give a tutorial here about how to do this. Instead, read the Apache docs on rotatelogs: http://httpd.apache.org/docs/2.0/programs/rotatelogs.html for proper examples.

 

This latter solution requires TESTING of your chosen parameters, unless you really know what you're doing. I have seen this used in conjunction with Webalyzer on other systems, but we haven't updated it for use with Orion or Coral. That's a new set of projects we'd enjoy some help in completing.

 

Regards,

BobS

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...