ons 2003-07-09 klockan 15.53 skrev Hartmann.Josef Fa. secunet:

> I would like to forward the access.log to a remote syslog server. Is
> there a way to tell squid to forward access logs to syslog? Currently
> I'm using "tail -f access.log|logger -p "local4.info" but I don't like
> that practice.

Running a small daemon which mirrors access.log to the selected log
service is the recommended practice.

tail -f is not the most suitable tool for the job as it does not handle
log rotation. I would use the File::Tail perl module which is much more
suited for the job, and if combined with Sys::Syslog the script can do
all you need, and you can easily add logics to assign different
priorities to different log lines etc..

Regards
Henrik

-- 
Donations welcome if you consider my Free Squid support helpful.
https://www.paypal.com/xclick/business=hno%40squid-cache.org

Please consult the Squid FAQ and other available documentation before
asking Squid questions, and use the squid-users mailing-list when no
answer can be found. Private support questions is only answered
for a fee or as part of a commercial Squid support contract.

If you need commercial Squid support or cost effective Squid and
firewall appliances please refer to MARA Systems AB, Sweden
http://www.marasystems.com/, [EMAIL PROTECTED]

Reply via email to