From owner-freebsd-newbies Wed May 29 5:37:33 2002 Delivered-To: freebsd-newbies@freebsd.org Received: from mail5.carolina.rr.com (fe5.southeast.rr.com [24.93.67.52]) by hub.freebsd.org (Postfix) with ESMTP id 8018737B408 for ; Wed, 29 May 2002 05:37:29 -0700 (PDT) Received: from chtlt033 ([24.74.25.55]) by mail5.carolina.rr.com with Microsoft SMTPSVC(5.5.1877.757.75); Wed, 29 May 2002 08:37:19 -0400 Message-ID: <02b001c2070d$875d8ea0$b701010a@chtlt033> Reply-To: "Brian P. Trotter" From: "Brian P. Trotter" To: "Postman Pat" , References: <20020529114205.6232.qmail@easy30a.your-server.co.za> Subject: Re: more on syslog - logging different hosts to different files Date: Wed, 29 May 2002 08:37:00 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 Sender: owner-freebsd-newbies@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org How about having all the logs go to one central log. Then have a script that runs every couple minutes that greps the log for hostA and sends it to host.log, and greps for hostB and sends it to hostb.log? ----- Original Message ----- From: "Postman Pat" To: Sent: Wednesday, May 29, 2002 7:42 AM Subject: more on syslog - logging different hosts to different files > Greetings, > I would like to do the following: > HOST_A logs go to /var/log/host_a.log > HOST_B logs go to /var/log/host_b.log. > > The syslog server has already been setup for remote syslog and is > receiving the logs and sending them to /var/log/messages. > > Any ideas how I do achieve this? > > Regards > > LK > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-newbies" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-newbies" in the body of the message