[squid-users] Re: Forward access.log to syslog/remote log server

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....


Go Back   Usenet Forums > Web Server and Related Forums > Squid Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-09-2003
Henrik Nordstrom
 
Posts: n/a
Default [squid-users] Re: Forward access.log to syslog/remote log server

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

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 04:08 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0