Vlogsplitter helps keeping Apache file handle count low

Four months ago I developed a nice little Python script to have a replacement for split-logfile and rotatelogs that fits better to the external logrotate approach of my web server. The resulting vlogsplitter is available at http://www.dittberner.info/projects/servertools/wiki/vlogsplitter.

The following snippet in Apache's configuration activates vlogsplitter:

CustomLog "| /usr/local/sbin/vlogsplitter /var/log/apache2 access.log" vhost_combined

Vlogsplitter maintains a pool of file handles and splits by the first field of the piped log stream. The vhost_combined custom log format defined by Debian's Apache package configuration fits this requirement.

Technorati Tags:Technorati Tags:

Reply

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <h2> <h3> <h4> <h5> <h6> <img>
  • Lines and paragraphs break automatically.
  • Images can be added to this post.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Copy the characters (respecting upper/lower case) from the image.