Date: Tue, 07 Dec 1999 16:39:09 -0600 (CST) From: Don Read <dread@calcasieu.com> To: "Rafael A. Reta Rodriguez" <rafareta@icave.com.mx> Cc: "questions@FreeBSD.ORG" <questions@FreeBSD.ORG>, Joseph Scott <joseph.scott@owp.csus.edu> Subject: Re: syslog Message-ID: <XFMail.991207163909.dread@calcasieu.com> In-Reply-To: <384D341D.A357DF13@icave.com.mx>
next in thread | previous in thread | raw e-mail | index | archive | help
On 07-Dec-99 Rafael A. Reta Rodriguez wrote: > > > Joseph Scott wrote: > >> "Rafael A. Reta Rodriguez" wrote: >> > >> > I'm want to send the squid log to /var/log/squid instead of >> > /var/log/messages so I added to /etc/syslog.conf the following line: >> > >> > squid.* /var/log/squid >> > >> > and killed -1 the process (even rebooted) but nothing happened >> > >> > Where am I wrong? >> > >> > Thanks in advance >> > >> >> Does /var/log/squid exist? syslog will not create the file. So do >> something like : >> >> # touch /var/log/squid >> # kill -HUP <pid_of_syslog> >> > > Yes, it exist, the problem was solved with Joseph Scott's solution (thanks > Joseph), by adding the !squid tag at the end of /etc/syslog.conf but now I > get > the messages in both files! > > Is it posible to stop geting the squid log in /var/log/messages? > > Thanks > > RafaReta in my /usr/local/etc/squid/squid.conf: cache_access_log /var/log/squid.log ... cache_log /var/log/squidcache.log Now the only squid things in messages is when things fu, and this is where I'd want to see them. ----------- spits.root# ls -l messages* -rw-rw-r-- 1 root wheel 60 Dec 7 00:00 messages -rw-rw-r-- 1 root wheel 120 Dec 7 00:00 messages.0 -rw-rw-r-- 1 root wheel 120 Dec 6 00:00 messages.1 -rw-rw-r-- 1 root wheel 119 Dec 5 00:00 messages.2 -rw-rw-r-- 1 root wheel 5205 Dec 4 00:00 messages.3 -rw-rw-r-- 1 root wheel 515 Dec 3 00:00 messages.4 -rw-rw-r-- 1 root wheel 70886 Dec 2 00:00 messages.5 spits.root# grep squid messages* messages.5:Dec 1 02:47:05 spits squid[239]: file_open: error opening file /usr/local/squid/cache/0B/5B/000005BB: (2) No such file or directory messages.5:Dec 1 02:47:05 spits squid[239]: storeOpenSwapFileRead: Failed for 'http://www.yahoo.com/' messages.5:Dec 1 02:47:06 spits squid[239]: file_open: error opening file /usr/local/squid/cache/01/E5/00000E51: (2) No such file or directory messages.5:Dec 1 02:47:06 spits squid[239]: storeOpenSwapFileRead: Failed for 'http://a32.g.a.yimg.com/7/32/31/000/us.yimg.com/a/pr/promo/babystyle/hp_babysty le3c.gif' spits.root# ---------- Regards, --- Don Read dread@calcasieu.com EDP Manager dread@texas.net Calcasieu Lumber Co. Austin TX -- No Coffe No Peace. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.991207163909.dread>