On Wed, 2005-03-30 at 21:55 -0600, Jason Stafford wrote:
Howdy,
Would someone please shed some light on the correct way to get logs out of apache and into syslog-ng without causing the apache to crash? I'm currently using custom log and sending that via a pipe to logger. Howerver for some reason apache will just stop responding and stop handling requests. To fix this i just restart syslog-ng and it starts working. I posted earlier with my config and someone recommend that i send it all via udp to a central server cause this might be related to the pipe. I have since done this and i did not fix the problem. What i really need is a way to get the logs out of apache wihtout using logger?
Are you sure syslog-ng is not blocking for a reason? A common problem is that more than a single program reads /proc/kmsg which will block sometimes in this case. Try stracing the syslog-ng process when it does this and see which system call it is in. -- Bazsi