This is a discussion on [squid-users] Re: Forward access.log to syslog/remote log server within the Squid Users forums, part of the Web Server and Related Forums category; ons 2003-07-09 klockan 15.53 skrev Hartmann.Josef Fa. secunet: > I would like to forward the access....
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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/busine...quid-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/, info@marasystems.com |