Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 32918 invoked from network); 28 Dec 2010 12:55:43 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 28 Dec 2010 12:55:43 -0000 Received: (qmail 48941 invoked by uid 500); 28 Dec 2010 12:55:40 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 48701 invoked by uid 500); 28 Dec 2010 12:55:39 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 48693 invoked by uid 99); 28 Dec 2010 12:55:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Dec 2010 12:55:39 +0000 X-ASF-Spam-Status: No, hits=2.9 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_NEUTRAL,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [217.146.183.219] (HELO nm2.bullet.mail.ukl.yahoo.com) (217.146.183.219) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 28 Dec 2010 12:55:32 +0000 Received: from [217.146.183.183] by nm2.bullet.mail.ukl.yahoo.com with NNFMP; 28 Dec 2010 12:55:09 -0000 Received: from [217.146.183.32] by tm14.bullet.mail.ukl.yahoo.com with NNFMP; 28 Dec 2010 12:55:09 -0000 Received: from [127.0.0.1] by omp1021.mail.ukl.yahoo.com with NNFMP; 28 Dec 2010 12:55:09 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 765270.3954.bm@omp1021.mail.ukl.yahoo.com Received: (qmail 80507 invoked by uid 60001); 28 Dec 2010 12:55:09 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.de; s=s1024; t=1293540909; bh=03+n35w2usMSrzvFtGliIEXnbu41vLXTeKkg7f/+wy4=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=2XifqiJ6XIfuvAUlHrV6+uMPq3prmM3r+t7Mjkp+jX8dbYIlOUednoHibsMjeFGHr8/Ee7nPIgLw+GC3uUZ8jihWbMZd4juRiPGcs/Xl456zT/EPBlrdNzUe/4oMKJ/7mkYaMI0uiN3qTzvBGa6r6FYREu9IeWGwRLNxsG5iBr0= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.de; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=buB2zal/zsW9fcxRC3xwUSloWUFnRHrAHlzHHa/gkU6/CGH8wWIvANBdU9diFR/VFCnCnIiwREOFOgpZCwXmhhXiKd7hxgIO2oLjG0AHQIwIyznKeFFHSUP5soRn+aXpm910pL/CzKW6F0uVuApNPoo/IvgUKgB02NkjrzaMB8M=; Message-ID: <618962.80494.qm@web27807.mail.ukl.yahoo.com> X-YMail-OSG: 18wr5dQVM1mW_YjCJOSmyAM_gkyxFrHkpWRAdKIkD3ezJCh j_HiRo_gWLT1UoHdTrF3_A5fPd6G6IsLcQ21DAcSED.qS2GlVIF9ut6Na_xM aoCs5riPKytTLB1ulLw3JrbjyyoHEMZ8FlmGXMB5f9CguIii4Ug1.jx.Yo7c IarJc2FArzLcJE_4M9v2VMMzym6.8gAsA1J6GzbYDJtl4dt6Qkoa23MTLCPm PxsKiV0RTX_63ucaOAb49FOasLDRwXxwpKaJVBJB.BHPiXK1GRaH49PgMHcU owEXSqkrXF6lesroXwIPOej.a.T7csEAXwoNt7A-- Received: from [217.5.150.53] by web27807.mail.ukl.yahoo.com via HTTP; Tue, 28 Dec 2010 12:55:09 GMT X-Mailer: YahooMailClassic/11.4.20 YahooMailWebService/0.8.107.285259 Date: Tue, 28 Dec 2010 12:55:09 +0000 (GMT) From: Thomas Chang To: users@httpd.apache.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-199385281-1293540909=:80494" Subject: [users@httpd] A question about log rotation (/etc/logrotation.d and /etc/logrotation.d/httpd) --0-199385281-1293540909=:80494 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Hello all, By default the log rotate every week and add the running number after the l= og file. Now I want to change this so that all the log files under /var/log= /httpd rotate every day and end with date with format ddmmyyyy. I change the /etc/logrotate.d/gttpd as follow: /var/log/httpd/*log { =A0=A0=A0 daily =A0=A0=A0 dateexe =A0=A0=A0 rotate 60 =A0=A0=A0 missingok =A0=A0=A0 notifempty =A0=A0=A0 sharedscripts =A0=A0=A0 postrotate =A0=A0=A0=A0=A0=A0=A0 /sbin/service httpd reload > /dev/null 2>/dev/null ||= true =A0=A0=A0 endscript } But it seems it doesn't work. The log files under /var/log/httpd/ still end= with number. Can someone help? Regards Thomas =0A=0A --0-199385281-1293540909=:80494 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
Hello all,

By default the log rotate e= very week and add the running number after the log file. Now I want to chan= ge this so that all the log files under /var/log/httpd rotate every day and= end with date with format ddmmyyyy.

I change the /etc/logrotate.d/g= ttpd as follow:

/var/log/httpd/*log {
    daily    dateexe
    rotate 60
  =   missingok
    notifempty
    sha= redscripts
    postrotate
    &nbs= p;   /sbin/service httpd reload > /dev/null 2>/dev/null || = true
    endscript
}


But it seems it doesn'= t work. The log files under /var/log/httpd/ still end with number.

C= an someone help?

Regards

Thomas


--0-199385281-1293540909=:80494--