From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS12257 168.159.213.0/24 X-Spam-Status: No, score=-1.8 required=3.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD, URIBL_BLOCKED shortcircuit=no autolearn=unavailable version=3.3.2 X-Original-To: unicorn-public@bogomips.org Received: from mailuogwhop.emc.com (mailuogwhop.emc.com [168.159.213.141]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 6EF981F4BD for ; Fri, 24 Jul 2015 13:55:09 +0000 (UTC) Received: from maildlpprd04.lss.emc.com (maildlpprd04.lss.emc.com [10.253.24.36]) by mailuogwprd02.lss.emc.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.0) with ESMTP id t6ODt4VU019879 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Fri, 24 Jul 2015 09:55:04 -0400 X-DKIM: OpenDKIM Filter v2.4.3 mailuogwprd02.lss.emc.com t6ODt4VU019879 X-DKIM: OpenDKIM Filter v2.4.3 mailuogwprd02.lss.emc.com t6ODt4VU019879 Received: from mailusrhubprd54.lss.emc.com (mailusrhubprd54.lss.emc.com [10.106.48.19]) by maildlpprd04.lss.emc.com (RSA Interceptor) for ; Fri, 24 Jul 2015 09:54:41 -0400 Received: from mxhub11.corp.emc.com (mxhub11.corp.emc.com [10.254.92.106]) by mailusrhubprd54.lss.emc.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.0) with ESMTP id t6ODslLd013849 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL) for ; Fri, 24 Jul 2015 09:54:47 -0400 Received: from MXHUB104.corp.emc.com (10.253.58.16) by mxhub11.corp.emc.com (10.254.92.106) with Microsoft SMTP Server (TLS) id 8.3.327.1; Fri, 24 Jul 2015 09:54:46 -0400 Received: from MX108CL01.corp.emc.com ([169.254.9.86]) by MXHUB104.corp.emc.com ([::1]) with mapi id 14.03.0224.002; Fri, 24 Jul 2015 09:54:46 -0400 From: "Dowd, Stephen" To: "unicorn-public@bogomips.org" Subject: Question: How to limit size of log & error files Thread-Topic: Question: How to limit size of log & error files Thread-Index: AdDGF2f/6QX28ZCORjG72LymyR7bjw== Date: Fri, 24 Jul 2015 13:54:46 +0000 Message-ID: <65EB80B5926DCC4DA6C21AEC11827B7B4C01DE74@MX108CL01.corp.emc.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [137.69.79.32] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Sentrion-Hostname: mailusrhubprd54.lss.emc.com X-RSA-Classifications: public List-Id: I'd like to control the size and on disk layout of the unicorn error and ou= tput logs. Basically I want ruby Logger like functionality where I can sp= ecify a fixed # of rolling logs each of which is limited to # mb in size. = Not sure how to do this in unicorn.rb. =20 My unicorn.conf file has basically the defaults, with the exception of: Stderr_path "/log/unicorn/stderr.log" Stdout_path "/log/unicorn/stdout.log" These files will grow to the point where the disk becomes full at which poi= nt we begin to see failures. =20 Thanks in advance... Steve