From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.43) id 1E2FBC-0003mn-4R for garchives@archives.gentoo.org; Mon, 08 Aug 2005 21:29:06 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.4/8.13.4) with SMTP id j78LRB59004909; Mon, 8 Aug 2005 21:27:11 GMT Received: from imf17aec.mail.bellsouth.net (imf17aec.mail.bellsouth.net [205.152.59.65]) by robin.gentoo.org (8.13.4/8.13.4) with ESMTP id j78LRAvj003212 for ; Mon, 8 Aug 2005 21:27:11 GMT Received: from ibm57aec.bellsouth.net ([65.12.210.216]) by imf17aec.mail.bellsouth.net with ESMTP id <20050808212732.BWPH4819.imf17aec.mail.bellsouth.net@ibm57aec.bellsouth.net> for ; Mon, 8 Aug 2005 17:27:32 -0400 Received: from [192.168.0.2] (really [65.12.210.216]) by ibm57aec.bellsouth.net with ESMTP id <20050808212732.JWZU4854.ibm57aec.bellsouth.net@[192.168.0.2]> for ; Mon, 8 Aug 2005 17:27:32 -0400 Message-ID: <42F7CE47.5090602@bellsouth.net> Date: Mon, 08 Aug 2005 17:27:35 -0400 From: david User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050716) X-Accept-Language: en-us, en Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-server@gentoo.org Reply-to: gentoo-server@lists.gentoo.org MIME-Version: 1.0 To: gentoo-server@lists.gentoo.org Subject: Re: [gentoo-server] Apache2 logs References: <200508082053.j78Kric7021900@robin.gentoo.org> In-Reply-To: <200508082053.j78Kric7021900@robin.gentoo.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Archives-Salt: 1c6e5b57-c3ea-4cba-bf47-03000fc1bac0 X-Archives-Hash: dbf8c2d9858a838291c893921f2413e0 Sean Wells wrote: >I have the following options turned on in mine: > >create >compress >notifempty >nomail >noolddir >/var/log/apache2/*_log { >daily >rotate 7 >sharedscripts >postrotate >/etc/init.d/apache2 reload >/dev/null # this makes sure apache doesn't >continue writing to the old logs >endscript >} > >Sean Wells >Network Administrator >Data Mosaics, Inc. >2406 S. Dishman Mica Rd. Suite 6 >Spokane Valley, WA 99206 >866.904.DMSF (phone) >509.928.4236 (fax) > >-----Original Message----- >From: david [mailto:abbottdavid@bellsouth.net] >Sent: Monday, August 08, 2005 1:49 PM >To: gentoo-server@lists.gentoo.org >Subject: Re: [gentoo-server] Apache2 logs > >david wrote: > > > >>Sean Wells wrote: >> >> >> >> >> >>>I use logrotate to loop through the logs daily...I generally only keep a >>>weeks worth or so due to size. It'll automatically remove the old ones >>> >>> >just > > >>>fine in the end. >>> >>>Sean Wells >>>Network Administrator >>>Data Mosaics, Inc. >>>2406 S. Dishman Mica Rd. Suite 6 >>>Spokane Valley, WA 99206 >>>866.904.DMSF (phone) >>>509.928.4236 (fax) >>>-----Original Message----- >>>From: david [mailto:abbottdavid@bellsouth.net] >>>Sent: Monday, August 08, 2005 1:01 PM >>>To: gentoo-server@lists.gentoo.org >>>Subject: [gentoo-server] >>> >>>What is the right way to clean apache2 logs? >>>/var/log/apache2/access_log and error_log point to >>>/usr/lib/apache2/logs/access_log and error_log >>>I have been cd /usr/lib/apache2/logs >>>rm access_log >>>touch access_log >>>chmod 666 access_log same for error_log >>>I could leave error_log alone because its not very big, I do it to >>>access_log because it is huge and webalizer complains. >>>Should root own these logs or apache? >>> >>> >>> >>> >>> >>> >>Thanks looks like what I need, This is just my server here at the house >>for my stuff, do I need to edit anything? >># packages can drop log rotation information into this directory >>include /etc/logrotate.d >> >>notifempty >>nomail >>noolddir >> >> >> >> > > > >>Looks like I need to add this /etc/logrotate.conf after compress; >> >> >> >compress >"/var/log/apache2/access_log" /var/log/apache2/error_log { >rotate 5 >size 100k >sharescripts >postrotate > /bin/killall -HUP apache2 >endscript >} >Is that right? > > > >> >> >> >> > > > Works great thanks, I just commented the #include /etc/logrotate.d it had mysql and syslog-ng in there so now logrotate is only looking for apache logs -- gentoo-server@gentoo.org mailing list