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:

Antworten

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <h2> <h3> <h4> <h5> <h6> <img>
  • Zeilen und Absätze werden automatisch erzeugt.
  • Bilder können zu diesem Eintrag hinzugefügt werden.

Weitere Informationen über Formatierungsoptionen

CAPTCHA
Diese Frage dient dazu zu prüfen ob Sie ein Mensch sind und um automatisierte SPAM-Beiträge zu verhindern.
Image CAPTCHA
Enter the characters shown in the image without spaces, also respect upper and lower case.