From owner-freebsd-questions Tue Dec 7 14:40:57 1999 Delivered-To: freebsd-questions@freebsd.org Received: from spits.calcasieu.com (spits.calcasieu.com [209.99.46.70]) by hub.freebsd.org (Postfix) with ESMTP id 69833154CB for ; Tue, 7 Dec 1999 14:40:40 -0800 (PST) (envelope-from dread@calcasieu.com) Received: from coypu.bb.calcasieu.com (coypu.bb.calcasieu.com [192.168.3.21]) by spits.calcasieu.com (8.9.3/8.9.3) with ESMTP id QAA27853; Tue, 7 Dec 1999 16:38:58 -0600 (CST) (envelope-from dread@calcasieu.com) Message-ID: X-Mailer: XFMail 1.3.1 [p0] on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <384D341D.A357DF13@icave.com.mx> Date: Tue, 07 Dec 1999 16:39:09 -0600 (CST) Organization: Calcasieu Lumber From: Don Read To: "Rafael A. Reta Rodriguez" Subject: Re: syslog Cc: "questions@FreeBSD.ORG" Cc: "questions@FreeBSD.ORG" , Joseph Scott Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 >> > > 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