On Wed, 23 Dec 2009, Mathew Snyder wrote:

> 
> A friend asked an interesting question. He was telling me about how
> his Apache logs are nailing his hard drive and was wondering if there
> is a way for syslog to cache log data before writing it to disk. There
> are methods such as ramlog which will create a ramdisk at startup and
> then mount it at /var/log only writing to disk at system shutdown.
> This would be a kludgy solution as it would require a cron job to shut
> down the service before it became full forcing it to write the log
> data to disk and then restarting it. There are too many variables in
> that solution.
>
> Does syslog or syslog-ng have such an option? I Googled around but
> came up empty.

rsyslog (the new default on most linux distros), will do this for you. by 
default it records incoming messages to a memory queue and then processes 
them later (in a seperate thread)

David Lang
_______________________________________________
Tech mailing list
[email protected]
http://lopsa.org/cgi-bin/mailman/listinfo/tech
This list provided by the League of Professional System Administrators
 http://lopsa.org/

Reply via email to