Re: [squid-users] how to collect real-time log from all squid server

From: Henrik Nordstrom <henrik@dont-contact.us>
Date: Sun, 12 Aug 2007 03:03:20 +0200

On sön, 2007-08-12 at 08:52 +0800, huang mingyou wrote:
> hi,guys:
> In my squid cache network,have more than 100 squid server. I want
> collect the real-time squid's access log.
> There have some goo solution ? now,I use tail -F read the message
> from log.then pipe to a shell script ,this shell script will send the
> message to a mysql server. this method so dirty.And I had try the
> syslog-ng,but I found that's method will dirty than me.
> Please help me!

You can also log to a named pipe

And there is also the logfile daemon project at devel.squid-cache.org
which breaks out the logging to a separate helper process, making things
like the above considerably easier.

http://devel.squid-cache.org/projects.html#s26_logfile_daemon

Regards
Henrik

Received on Sat Aug 11 2007 - 19:03:31 MDT

This archive was generated by hypermail pre-2.1.9 : Sat Sep 01 2007 - 12:00:03 MDT