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 1E2Ea5-0007DW-8M for garchives@archives.gentoo.org; Mon, 08 Aug 2005 20:50:45 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.4/8.13.4) with SMTP id j78KmNWN026320; Mon, 8 Aug 2005 20:48:23 GMT Received: from imf16aec.mail.bellsouth.net (imf16aec.mail.bellsouth.net [205.152.59.64]) by robin.gentoo.org (8.13.4/8.13.4) with ESMTP id j78KmLjj023576 for ; Mon, 8 Aug 2005 20:48:22 GMT Received: from ibm58aec.bellsouth.net ([65.12.210.216]) by imf16aec.mail.bellsouth.net with ESMTP id <20050808204843.MDSH16961.imf16aec.mail.bellsouth.net@ibm58aec.bellsouth.net> for ; Mon, 8 Aug 2005 16:48:43 -0400 Received: from [192.168.0.2] (really [65.12.210.216]) by ibm58aec.bellsouth.net with ESMTP id <20050808204843.HPPW9746.ibm58aec.bellsouth.net@[192.168.0.2]> for ; Mon, 8 Aug 2005 16:48:43 -0400 Message-ID: <42F7C52E.3000408@bellsouth.net> Date: Mon, 08 Aug 2005 16:48:46 -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: <200508082012.j78KCkXp013815@robin.gentoo.org> <42F7C1D5.5030601@bellsouth.net> In-Reply-To: <42F7C1D5.5030601@bellsouth.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Archives-Salt: ac7e7dd1-455d-4a32-b292-2e938b16280e X-Archives-Hash: 4e609e5d651a3d8c2aec609a5c50405b 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? > > > -- gentoo-server@gentoo.org mailing list