Contact     |    About         

Two good ideas meet:   syslog-ng + vlogger

I took the work of Steve J. Kondik, author of vlogger and the work  created by BalaBit IT Security, syslog-ng and brought them together.

syslog-ng is a great tool to implement for auto-log rotation. vlogger provides a similar solution for Apache logging.

The "CustomLog" in the Apache configurations can be wired to the vlogger, which works great.   Download a modified version of the vlogger that includes the additional configuration set:

CustomLog "| /usr/local/bin/vlogger -t syslog-ng,www.mysite.com /master/logs" combined

The "-t syslog-ng,xxxx" setting will create logs in the /master/logs folder named:

  .../uname/YYYY/MM/DD/httpd.www.mysite.com.YYYYMMDD

References:

http://n0rp.chemlab.org/vlogger/
http://www.balabit.com/network-security/syslog-ng/
modified "vlogger" file, vlogger.zip