On Tuesday January 29 2008 9:11:05 pm Porkchop wrote:
> On 29/01/08 17:35 -0500, Alan and Pete wrote:
> > I'm not all that familiar with syslog-ng, but couldn't you just have
> > it write
> > to a (rotating) file which is picked up, processed & databasified by a
> > cron
> > job?  Seems to be a pretty common way of doing such things...
>
> Latency. I can't have more than (perhaps) 30 seconds latent.

If you're worried about hanging syslog if your app gets behind (if the DB is 
slow, say), you can probably improve things by buffering the reads out of 
syslog and doing the DB writes from data read from the buffer.  Basic 
producer/consumer + queue.

-- 
Peter Fein   ||   773-575-0694   ||   [EMAIL PROTECTED]
http://www.pobox.com/~pfein/   ||   PGP: 0xCCF6AE6B
irc: [EMAIL PROTECTED]   ||   jabber: [EMAIL PROTECTED]
_______________________________________________
Mid-Hudson Valley Linux Users Group                  http://mhvlug.org          
   
http://mhvlug.org/cgi-bin/mailman/listinfo/mhvlug                           
Upcoming Meetings (6pm - 8pm)                         MHVLS Auditorium          
        
  Feb 6 - DBUS
  Mar 5 - Setting up a platform-independent home/small office network using 
Linux

Reply via email to