[prev in list] [next in list] [prev in thread] [next in thread] 

List:       apache-httpd-users
Subject:    Re: [users@httpd] A question about log rotation (/etc/logrotation.d and /etc/logrotation.d/httpd)
From:       Thomas Chang <thomas2004ch () yahoo ! de>
Date:       2010-12-29 14:21:44
Message-ID: 435750.10303.qm () web27806 ! mail ! ukl ! yahoo ! com
[Download RAW message or body]

You are right.

> -)

--- Joost de Heer <joost@sanguis.xs4all.nl> schrieb am Di, 28.12.2010:

Von: Joost de Heer <joost@sanguis.xs4all.nl>
Betreff: Re: [users@httpd] A question about log rotation (/etc/logrotation.d and \
                /etc/logrotation.d/httpd)
An: users@httpd.apache.org
Datum: Dienstag, 28. Dezember, 2010 14:35 Uhr

On Tue, December 28, 2010 13:55, Thomas Chang wrote:
> Hello all,
> 
> By default the log rotate every week and add the running number after the
> log 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 {
> daily
> dateexe

This should be dateext

Joost

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


[Attachment #3 (text/html)]

<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: \
inherit;">You are right.<br><br>:-)<br><br>--- Joost de Heer \
<i>&lt;joost@sanguis.xs4all.nl&gt;</i> schrieb am <b>Di, \
28.12.2010:<br></b><blockquote style="border-left: 2px solid rgb(16, 16, 255); \
margin-left: 5px; padding-left: 5px;"><b><br>Von: Joost de Heer \
&lt;joost@sanguis.xs4all.nl&gt;<br>Betreff: Re: [users@httpd] A question about log \
rotation (/etc/logrotation.d and /etc/logrotation.d/httpd)<br>An: \
users@httpd.apache.org<br>Datum: Dienstag, 28. Dezember, 2010 14:35 \
Uhr<br><br></b><div class="plainMail"><b>On Tue, December 28, 2010 13:55, Thomas \
Chang wrote:<br>&gt; Hello all,<br>&gt;<br>&gt; By default the log rotate every week \
and add the running number after the<br>&gt; log file. Now I want to change this so \
that all the log files under<br>&gt; /var/log/httpd rotate every day and end with \
date with format ddmmyyyy.<br>&gt;<br>&gt; I change the  /etc/logrotate.d/gttpd as \
follow:<br>&gt;<br>&gt; /var/log/httpd/*log {<br>&gt; &nbsp;&nbsp;&nbsp; \
daily<br>&gt; &nbsp;&nbsp;&nbsp; dateexe<br><br>This should be \
dateext<br><br>Joost<br><br>---------------------------------------------------------------------<br>The \
official User-To-User support forum of the Apache HTTP Server Project.<br>See \
&lt;URL:<a href="http://httpd.apache.org/userslist.html" \
target="_blank">http://httpd.apache.org/userslist.html</a>&gt; for more info.<br>To \
unsubscribe, e-mail: <a ymailto="mailto:users-unsubscribe@httpd.apache.org" \
href="/mc/compose?to=users-unsubscribe@httpd.apache.org">users-unsubscribe@httpd.apache.org</a><br>&nbsp;&nbsp;&nbsp;"&nbsp;&nbsp;&nbsp;from \
the digest: <a ymailto="mailto:users-digest-unsubscribe@httpd.apache.org" \
href="/mc/compose?to=users-digest-unsubscribe@httpd.apache.org">users-digest-unsubscribe@httpd.apache.org</a><br>For \
additional commands, e-mail: <a  ymailto="mailto:users-help@httpd.apache.org" \
href="/mc/compose?to=users-help@httpd.apache.org">users-help@httpd.apache.org</a><br><br></b></div></blockquote></td></tr></table><br>




[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic