From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: pi+piham Delivered-To: pi+piham@dcvr.yhbt.net Received: by dcvr.yhbt.net (Postfix, from userid 1000) id CE1366338C4; Fri, 24 Jul 2015 17:15:42 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM, HTML_MESSAGE,URIBL_BLOCKED shortcircuit=no autolearn=ham version=3.3.2 X-Original-To: unicorn-public@bogomips.org Delivered-To: ew@dcvr.yhbt.net Received: from mail-ie0-f172.google.com (mail-ie0-f172.google.com [209.85.223.172]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 2A4C91F4BD for ; Fri, 24 Jul 2015 14:05:48 +0000 (UTC) Received: by iecrl10 with SMTP id rl10so15349972iec.1 for ; Fri, 24 Jul 2015 07:05:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=ifhxi4eR2DJD06KNXl3AAv42pE1J3TVedkuOb6+o244=; b=ssFCvJDIHFd07VQwcuIQ09wg+Ls+eszSQeEjZ9/b7xbS6g8uhbbLRPEE9du024APus SRiBNHh/xyWiwbIlB9Eu6y/1esVxUlW7onKYv2iIFEzTjXTcK/oh4iXWKX5T/S77Um53 r/PYaRqJWn/tRTIrA71Mo7uGLAO4N51rcb9df2zSrFGGdaEErCd8fkz9i5wkvHSoNbI8 qPPqHAbmLUUFi+BFhHdxw5OQRoDK3/3zxhckI+aHj2PxYnaZdM2qDhVS3dnj9/FXnWft rylNCm45NRwMrEh34KB4l1W30vVwaKZ/tSVV/m+K9IxdEZFKJ1VBe05XN8H8lszkZtNZ SxPA== MIME-Version: 1.0 X-Received: by 10.50.112.73 with SMTP id io9mr6750957igb.18.1437746747634; Fri, 24 Jul 2015 07:05:47 -0700 (PDT) Received: by 10.36.115.6 with HTTP; Fri, 24 Jul 2015 07:05:47 -0700 (PDT) In-Reply-To: <65EB80B5926DCC4DA6C21AEC11827B7B4C01DE74@MX108CL01.corp.emc.com> References: <65EB80B5926DCC4DA6C21AEC11827B7B4C01DE74@MX108CL01.corp.emc.com> Date: Fri, 24 Jul 2015 15:05:47 +0100 Message-ID: Subject: Re: Question: How to limit size of log & error files From: Ben Lovell To: "Dowd, Stephen" Cc: "unicorn-public@bogomips.org" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: PublicInbox::Filter 0.0.1 On 24 July 2015 at 14:54, Dowd, Stephen wrote: > I'd like to control the size and on disk layout of the unicorn error and > output logs. Basically I want ruby Logger like functionality where I can > specify a fixed # of rolling logs each of which is limited to # mb in > size. Not sure how to do this in unicorn.rb. > > 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 > point we begin to see failures. > > > Thanks in advance... > > Steve > It's right there in the docs: http://unicorn.bogomips.org/examples/logrotate.conf Cheers, Ben