From owner-freebsd-questions Sun Aug 18 9:23:43 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A6EF137B40A for ; Sun, 18 Aug 2002 09:23:34 -0700 (PDT) Received: from c3po.artlogix.com (sense-mcglk-240.oz.net [216.39.168.240]) by mx1.FreeBSD.org (Postfix) with ESMTP id 212F443E42 for ; Sun, 18 Aug 2002 09:23:34 -0700 (PDT) (envelope-from mcglk@artlogix.com) Received: from ralf.artlogix.com.artlogix.com (ralf.artlogix.com [192.168.0.4]) by c3po.artlogix.com (Postfix) with ESMTP id DC3DA1A97F; Sun, 18 Aug 2002 09:24:03 -0700 (PDT) To: sroberts@dsl.pipex.com Cc: FreeBSD Questions Subject: Re: Add new service to newsyslog.conf? References: <1029661402.5163.2.camel@Demon.vickiandstacey.com> From: Ken McGlothlen Date: 18 Aug 2002 09:23:49 -0700 In-Reply-To: <1029661402.5163.2.camel@Demon.vickiandstacey.com> Message-ID: <86y9b4rv8q.fsf@ralf.artlogix.com> Lines: 22 User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Cuyahoga Valley) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Stacey Roberts writes: | Hello, | I've just enabled authenticated ftp access to a box, and I've | created /var/log/ftpd so as to log ftp connection events. | | Its all working fine, but I would like to have newsyslog manage to log | files generated (define rotation schedule, log-size limitation, etc). | Could someone please advise me on doing this? Well, most of the information you seek is in $ man newsyslog I tend to prefer keeping the file not-world-readable (mode 600), rotated monthly on the first day of the month, and keep them in gzipped form. I also prefer to keep archived logs for a year. The way you'd write that in /etc/newsyslog.conf is: /var/log/ftpd 600 12 * $M1D0 Z C'mon back if you have any questions. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message