From owner-freebsd-questions@freebsd.org Tue May 10 00:09:12 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EA283B34B75 for ; Tue, 10 May 2016 00:09:12 +0000 (UTC) (envelope-from cody@sysop.ca) Received: from watney.sysop.ca (watney.sysop.ca [104.207.159.58]) by mx1.freebsd.org (Postfix) with ESMTP id C0A461DB2 for ; Tue, 10 May 2016 00:09:12 +0000 (UTC) (envelope-from cody@sysop.ca) Received: from mbx.sysop.ca (mbx.sysop.ca [172.16.0.2]) by watney.sysop.ca (Postfix) with ESMTP id 989D5FA188; Mon, 9 May 2016 18:00:00 -0600 (MDT) Received: from localhost (localhost [127.0.0.1]) by mbx.sysop.ca (Postfix) with ESMTP id 4220F1860CE4D; Mon, 9 May 2016 18:00:01 -0600 (MDT) Received: from mbx.sysop.ca ([127.0.0.1]) by localhost (mbx.sysop.ca [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id ou2sOASx75oz; Mon, 9 May 2016 18:00:00 -0600 (MDT) Received: from localhost (localhost [127.0.0.1]) by mbx.sysop.ca (Postfix) with ESMTP id 3B7551860C5D4; Mon, 9 May 2016 18:00:00 -0600 (MDT) X-Virus-Scanned: amavisd-new at sysop.ca Received: from mbx.sysop.ca ([127.0.0.1]) by localhost (mbx.sysop.ca [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id guhgJ76rLidG; Mon, 9 May 2016 18:00:00 -0600 (MDT) Received: from mbx.sysop.ca (localhost [127.0.0.1]) by mbx.sysop.ca (Postfix) with ESMTP id 1658B1860CE4D; Mon, 9 May 2016 18:00:00 -0600 (MDT) Date: Mon, 9 May 2016 17:59:59 -0600 (MDT) From: Cody Swanson To: Cary Cc: freebsd-questions@freebsd.org Message-ID: <843963300.2930.1462838399876.JavaMail.zimbra@sysop.ca> In-Reply-To: <20160509222703.GA2794@SDF.ORG> References: <20160509222703.GA2794@SDF.ORG> Subject: Re: file receives no input after turn over by newsyslog(8) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [10.1.24.20] X-Mailer: Zimbra 8.6.0_GA_1153 (ZimbraWebClient - GC50 (Win)/8.6.0_GA_1153) Thread-Topic: file receives no input after turn over by newsyslog(8) Thread-Index: avWd9+pl3ObLGvnZFrgiwiD2lKSVLw== X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 May 2016 00:09:13 -0000 Cary, I've been using cronolog (/usr/ports/sysutils/cronolog) for many years with great success to keep my apache logs rotated. In httpd.conf (or your vhost config) put something similar: CustomLog "|/usr/local/sbin/cronolog /path/to/www/logs/%Y-%m-access.log" combined Cronolog is smart enough to know when to rotate the logs based on your customlog string. The above gives me 1 log a month for my personal low traffic sites, busier sites may want to go daily or hourly to avoid huge logs. ----- Original Message ----- From: "Cary" To: freebsd-questions@freebsd.org Sent: Monday, May 9, 2016 4:27:03 PM Subject: file receives no input after turn over by newsyslog(8) Hi all, Perhaps someone might be able to help. The /var/log/httpd-access.log file is turned over at least once a week on a VPS running 10.2-Stable. /var/log/httpd-*.log 644 10 500 * GX is the line I have in /etc/newsyslog.conf. After the file is turned over no messages are saved from the apache24 daemon. There is just a line from newsyslog(8) with the date, hostname process number and a message that the file was turned over. After restarting httpd(8) all messages are logged again. Other httpd-* log files are do not fill up as quickly, but are probably affected as well. How can I keep getting logs from the server without a service restart? -- cary@sdf.org SDF Public Access UNIX System - http://sdf.org _______________________________________________ freebsd-questions@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"