Return-Path: X-Original-To: apmail-logging-log4j-user-archive@www.apache.org Delivered-To: apmail-logging-log4j-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A81EA10173 for ; Wed, 9 Apr 2014 22:59:26 +0000 (UTC) Received: (qmail 35113 invoked by uid 500); 9 Apr 2014 22:59:25 -0000 Delivered-To: apmail-logging-log4j-user-archive@logging.apache.org Received: (qmail 35028 invoked by uid 500); 9 Apr 2014 22:59:25 -0000 Mailing-List: contact log4j-user-help@logging.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Log4J Users List" Reply-To: "Log4J Users List" Delivered-To: mailing list log4j-user@logging.apache.org Received: (qmail 35019 invoked by uid 99); 9 Apr 2014 22:59:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Apr 2014 22:59:25 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of boards@gmail.com designates 209.85.214.175 as permitted sender) Received: from [209.85.214.175] (HELO mail-ob0-f175.google.com) (209.85.214.175) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Apr 2014 22:59:21 +0000 Received: by mail-ob0-f175.google.com with SMTP id uy5so3517067obc.34 for ; Wed, 09 Apr 2014 15:59:00 -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 :content-type; bh=IPIsfc0aqA9IwWSbLFsKptN490yOqQcaVtLrOZLRzVY=; b=1D6fJUIMTNQMxNeYO2f/QkYkAmD8z3TslDb58CutbCdC5t/GlmvE7t7V4CxR6FzvhL Uew8gdqwYJQMly7+vqLtWKGi2gIdfU7jOKtllaDFmqeg30aqYGlTFWsdgtbpHu3J7HY0 JXf9/SW56uCfwkKfmMCzbI4HUWOKcZocibVJ6BoOrkdygUn84ngm34RL9QdUe4PIgkyA /cAkFTPbYM0oQ4heOcnwP9+DmgStF+RN8/e9tvbrWyiOB3JPPLby+1vkgzA4x7FEH806 R/Vyar+3X81g/Grq58LZ1E4UpDYwEjcP43ySLDzl7tniR82ziIfc4dHoM8+LfhNuc+9M v0IA== MIME-Version: 1.0 X-Received: by 10.182.28.195 with SMTP id d3mr11034303obh.19.1397084340094; Wed, 09 Apr 2014 15:59:00 -0700 (PDT) Received: by 10.76.72.68 with HTTP; Wed, 9 Apr 2014 15:58:59 -0700 (PDT) In-Reply-To: <50C218D8-C6E1-4F77-8196-7DD311B486E6@dslextreme.com> References: <50C218D8-C6E1-4F77-8196-7DD311B486E6@dslextreme.com> Date: Wed, 9 Apr 2014 16:58:59 -0600 Message-ID: Subject: Re: Compressing only old rollover files From: Matt Sicker To: Log4J Users List Content-Type: multipart/alternative; boundary=001a11c2cd18d00e6d04f6a40bba X-Virus-Checked: Checked by ClamAV on apache.org --001a11c2cd18d00e6d04f6a40bba Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable It sounds like the "delaycompress" option from logrotate: http://linux.die.net/man/8/logrotate On 9 April 2014 09:46, Ralph Goers wrote: > Log4j currently compresses the files when it rolls them over. Of course > you can cause that to happen based on time, but it sounds like you want t= he > time of rollover and time of compression to be separate. If so, I am not > sure you really need to tie the compression activity to Log4j, or at leas= t > the appender at all. You just need something that monitors the directory > and looks for files over a certain age and then compresses them, deletes > them, or whatever. > > If I=E2=80=99ve misunderstood what you are asking please let me know. > > Ralph > > On Apr 9, 2014, at 12:57 AM, Manuel Teira wrote: > > > Hello all, > > > > I'm evaluating a switch to log4j-2 since my application is required to > > rollover files by age and size (for what the composite triggering > policies > > come handy). The rollover files shall also be compressed, but only thos= e > > reaching a given age. > > > > What would be the preferred approach to achieve that using log4j-2? > Should > > be reasonable to write a custom rollover strategy or is there any other > way > > out-of-the box that may work? > > > > Thanks and best regards, > > > > Manuel. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org > For additional commands, e-mail: log4j-user-help@logging.apache.org > > --=20 Matt Sicker --001a11c2cd18d00e6d04f6a40bba--