From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/2423 Path: news.gmane.org!.POSTED!not-for-mail From: Jonathan de Boyne Pollard Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: Log rotation issue with runit Date: Fri, 28 Dec 2018 06:57:41 +0000 Message-ID: <64985d17-be73-0da0-8634-a2a70f76ff62@NTLWorld.COM> References: <20181226015822.GH29946@home.lan> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1545980255 2127 195.159.176.226 (28 Dec 2018 06:57:35 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 28 Dec 2018 06:57:35 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 To: supervision@list.skarnet.org Original-X-From: supervision-return-2013-gcsg-supervision=m.gmane.org@list.skarnet.org Fri Dec 28 07:57:31 2018 Return-path: Envelope-to: gcsg-supervision@m.gmane.org Original-Received: from alyss.skarnet.org ([95.142.172.232]) by blaine.gmane.org with smtp (Exim 4.84_2) (envelope-from ) id 1gcm5K-0000RO-LH for gcsg-supervision@m.gmane.org; Fri, 28 Dec 2018 07:57:30 +0100 Original-Received: (qmail 30486 invoked by uid 89); 28 Dec 2018 07:00:08 -0000 Mailing-List: contact supervision-help@list.skarnet.org; run by ezmlm Original-Sender: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 30479 invoked from network); 28 Dec 2018 07:00:08 -0000 X-Originating-IP: [86.10.101.211] X-Authenticated-User: J.deBoynePollard-newsgroups@NTLWorld.COM X-Spam: 0 X-Authority: v=2.3 cv=Z7TC4kZA c=1 sm=1 tr=0 a=FQ5CjUvp3JFI4KFGyeqcZw==:117 a=FQ5CjUvp3JFI4KFGyeqcZw==:17 a=N659UExz7-8A:10 a=2rVjqWD_AAAA:8 a=uj8X_y5MAAAA:8 a=lFcS3e3ecI6hNKNrexcA:9 a=pILNOxqGKmIA:10 a=rahU-cWdhn4A:10 a=p4kMM3g73zkA:10 a=-FEs8UIgK8oA:10 a=NWVoK91CQyQA:10 a=ULaUcM2Ibn9MdPUUwucP:22 a=gp7W3T1CZUxA4ewt6LkN:22 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ntlworld.com; s=meg.feb2017; t=1545980261; bh=uiuyUCUibdlosTRN6aGjDlEnmuUrmp1K1LhyrQY8HJo=; h=Subject:To:References:From:Date:In-Reply-To; b=1cjZ2bMH5Obsp1GHcYYOB1904/jzt3v1rjXfea44OTRmcBI2ZQYQH8G2wWsyXGxC1 OJSVTcdbprTZtvm/x2MZe1SPoOtvFrR1dMecjyFEvaPjYjit+77Dv8lJy1QSLFMRXj dn8M+hCfNg3Q2GqISnKl4Gu+2svds8QdOaSRVLl3PmT9ITBU7JYN/wtoY/uiipREIN VqNYrrbmtab/xroe4kKVD1xFYgc3mQ0q+KR4x4/tKXIlD1uRVsKA5N//hmb9XsCOit qTJJcaa7d1eEzxX9GgikSye0n5Wp9JYD592j4/mMsX9+jO3kGUgB3HE6PE8XY79OJA shI7Np1MWOW9w== In-Reply-To: <20181226015822.GH29946@home.lan> X-CMAE-Envelope: MS4wfFU6UuC7jrBUWYGoPj9mT2fJNKHb9BW4WnDB2Z0kS0nx+WzFvOpBJhQSNpYkqnd00F8DmXpG8YWZ4ksevEAtrffizNBnkBNmt9PpqCEFqcosyWkdoTJy AfoPP+TFGweCXgnYCkD7NgSGSDw2t1rAQmcjmqvVL9e/fBzc4GU+uWJYxw5iLtpkOrtjVecBWPF500bEQ0/0tcMN0/9ph53bhnE= Xref: news.gmane.org gmane.comp.sysutils.supervision.general:2423 Archived-At: Alex Efros: > I'm not sure is it good idea to include .u files in usual rotation > process at all, and especially handle them just like .s files. If > several crashes happens for some reason in a short period of time this > will result in deletion of all log files except last (say) 10 .u > files, which are usually small and may contain just one line. > Replacing 10MB of last logs with 10 last log lines doesn't sounds like > a nice idea. > Then cap the log directory by total file size rather than file count. M. Bercot and I both provide tools with this feature. "I want to keep the last 10MiB of logs." is exactly what it is for. * http://jdebp.eu./Softwares/nosh/guide/cyclog.html * http://skarnet.org./software/s6/s6-log.html