<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:series="http://unfoldingneurons.com/"
		>
<channel>
	<title>Comments on: Lighttpd rotating log files with logrotate tool</title>
	<atom:link href="http://www.cyberciti.biz/tips/lighttpd-rotating-logs-with-logrotate.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.cyberciti.biz/tips/lighttpd-rotating-logs-with-logrotate.html</link>
	<description>This is a Linux sys admin journal by Vivek about sys admin work, Linux tips &#38; tricks, hacks, news and more.</description>
	<lastBuildDate>Fri, 19 Mar 2010 02:53:17 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Ela</title>
		<link>http://www.cyberciti.biz/tips/lighttpd-rotating-logs-with-logrotate.html#comment-150889</link>
		<dc:creator>Ela</dc:creator>
		<pubDate>Thu, 01 Oct 2009 15:02:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/lighttpd-rotating-logs-with-logrotate.html#comment-150889</guid>
		<description>Am getting this problem very biggly

Please help me out

vi /etc/logrotate.conf
# see “man logrotate” for details
# rotate log files weekly
weekly

# keep 4 weeks worth of backlogs
rotate 4

# create new (empty) log files after rotating old ones
create

# uncomment this if you want your log files compressed
#compress

# RPM packages drop log rotation information into this directory
include /etc/logrotate.d

# no packages own wtmp — we’ll rotate them here
/var/log/wtmp {
monthly
minsize 1M
create 0664 root utmp
rotate 1
}

cat /etc/logrotate.d/httpd

/var/log/httpd/*log {
missingok
notifempty
sharedscripts
postrotate
/sbin/service httpd reload &gt; /dev/null 2&gt;/dev/null &#124;&#124; true
endscript
}

My server is running nearly 10 sites and all those creating log files under statistics in vhosts.
it wil become more than 30 gb with in week. how to control it. please reply me</description>
		<content:encoded><![CDATA[<p>Am getting this problem very biggly</p>
<p>Please help me out</p>
<p>vi /etc/logrotate.conf<br />
# see “man logrotate” for details<br />
# rotate log files weekly<br />
weekly</p>
<p># keep 4 weeks worth of backlogs<br />
rotate 4</p>
<p># create new (empty) log files after rotating old ones<br />
create</p>
<p># uncomment this if you want your log files compressed<br />
#compress</p>
<p># RPM packages drop log rotation information into this directory<br />
include /etc/logrotate.d</p>
<p># no packages own wtmp — we’ll rotate them here<br />
/var/log/wtmp {<br />
monthly<br />
minsize 1M<br />
create 0664 root utmp<br />
rotate 1<br />
}</p>
<p>cat /etc/logrotate.d/httpd</p>
<p>/var/log/httpd/*log {<br />
missingok<br />
notifempty<br />
sharedscripts<br />
postrotate<br />
/sbin/service httpd reload &gt; /dev/null 2&gt;/dev/null || true<br />
endscript<br />
}</p>
<p>My server is running nearly 10 sites and all those creating log files under statistics in vhosts.<br />
it wil become more than 30 gb with in week. how to control it. please reply me</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob</title>
		<link>http://www.cyberciti.biz/tips/lighttpd-rotating-logs-with-logrotate.html#comment-150666</link>
		<dc:creator>Rob</dc:creator>
		<pubDate>Wed, 16 Sep 2009 02:33:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/lighttpd-rotating-logs-with-logrotate.html#comment-150666</guid>
		<description>@ Rytis

mod_status shows no change in uptime between log rotations for me ... lighttpd-1.4.23 on FreeBSD 7.2-STABLE

/etc/newsyslog.conf
&lt;code&gt;
/var/log/lighttpd.*.log www:www         600  7     *    $D0   GJ  /var/run/lighttpd.pid
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>@ Rytis</p>
<p>mod_status shows no change in uptime between log rotations for me &#8230; lighttpd-1.4.23 on FreeBSD 7.2-STABLE</p>
<p>/etc/newsyslog.conf<br />
<code><br />
/var/log/lighttpd.*.log www:www         600  7     *    $D0   GJ  /var/run/lighttpd.pid<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rytis</title>
		<link>http://www.cyberciti.biz/tips/lighttpd-rotating-logs-with-logrotate.html#comment-150664</link>
		<dc:creator>Rytis</dc:creator>
		<pubDate>Wed, 16 Sep 2009 00:49:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/lighttpd-rotating-logs-with-logrotate.html#comment-150664</guid>
		<description>@ Rob

mod_status reports lighttpd started up after logs were rotated, and all the previous stats are cleared.  Since some of my logs are roated daily, my server uptime reported by mod_status is never more than a day.

I was just wondering if it&#039;s possible to rotate the logs and keep the server running (or is it good to restart it every day anyways?)</description>
		<content:encoded><![CDATA[<p>@ Rob</p>
<p>mod_status reports lighttpd started up after logs were rotated, and all the previous stats are cleared.  Since some of my logs are roated daily, my server uptime reported by mod_status is never more than a day.</p>
<p>I was just wondering if it&#8217;s possible to rotate the logs and keep the server running (or is it good to restart it every day anyways?)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob</title>
		<link>http://www.cyberciti.biz/tips/lighttpd-rotating-logs-with-logrotate.html#comment-150663</link>
		<dc:creator>Rob</dc:creator>
		<pubDate>Tue, 15 Sep 2009 23:32:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/lighttpd-rotating-logs-with-logrotate.html#comment-150663</guid>
		<description>@ Geoff and Rytis:

I don&#039;t think the HUP signal actually restarts lighttpd, from my understanding it tells the daemon to close any open file handles, open a new logfile and reload the config file</description>
		<content:encoded><![CDATA[<p>@ Geoff and Rytis:</p>
<p>I don&#8217;t think the HUP signal actually restarts lighttpd, from my understanding it tells the daemon to close any open file handles, open a new logfile and reload the config file</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rytis</title>
		<link>http://www.cyberciti.biz/tips/lighttpd-rotating-logs-with-logrotate.html#comment-150651</link>
		<dc:creator>Rytis</dc:creator>
		<pubDate>Tue, 15 Sep 2009 02:32:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/lighttpd-rotating-logs-with-logrotate.html#comment-150651</guid>
		<description>Good question Geoff.

I also wonder why does lighttpd has to be restarted after logs are rotated?

If the logs are rotated everyday, the server is restarted every day.</description>
		<content:encoded><![CDATA[<p>Good question Geoff.</p>
<p>I also wonder why does lighttpd has to be restarted after logs are rotated?</p>
<p>If the logs are rotated everyday, the server is restarted every day.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Geoff</title>
		<link>http://www.cyberciti.biz/tips/lighttpd-rotating-logs-with-logrotate.html#comment-146560</link>
		<dc:creator>Geoff</dc:creator>
		<pubDate>Mon, 05 Jan 2009 00:23:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/lighttpd-rotating-logs-with-logrotate.html#comment-146560</guid>
		<description>Why does lighttpd need to be restarted after rotating the log files?  Isn&#039;t the log simply copied, then truncated?  I don&#039;t see why a restart is needed.</description>
		<content:encoded><![CDATA[<p>Why does lighttpd need to be restarted after rotating the log files?  Isn&#8217;t the log simply copied, then truncated?  I don&#8217;t see why a restart is needed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: F4jr china</title>
		<link>http://www.cyberciti.biz/tips/lighttpd-rotating-logs-with-logrotate.html#comment-145559</link>
		<dc:creator>F4jr china</dc:creator>
		<pubDate>Wed, 12 Nov 2008 10:59:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/lighttpd-rotating-logs-with-logrotate.html#comment-145559</guid>
		<description>It works perfectly !

Thanks !</description>
		<content:encoded><![CDATA[<p>It works perfectly !</p>
<p>Thanks !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob</title>
		<link>http://www.cyberciti.biz/tips/lighttpd-rotating-logs-with-logrotate.html#comment-145395</link>
		<dc:creator>Rob</dc:creator>
		<pubDate>Tue, 28 Oct 2008 01:30:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/lighttpd-rotating-logs-with-logrotate.html#comment-145395</guid>
		<description>@ F4jr
It sure is!  You do need to tell newsyslog that the logfile is a shell pattern with the G flag:

&lt;code&gt;
/var/log/lighttpd.*.log www:www 644 7 * $D0 GJ /var/run/lighttpd.pid
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>@ F4jr<br />
It sure is!  You do need to tell newsyslog that the logfile is a shell pattern with the G flag:</p>
<p><code><br />
/var/log/lighttpd.*.log www:www 644 7 * $D0 GJ /var/run/lighttpd.pid<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: F4jr</title>
		<link>http://www.cyberciti.biz/tips/lighttpd-rotating-logs-with-logrotate.html#comment-144821</link>
		<dc:creator>F4jr</dc:creator>
		<pubDate>Tue, 02 Sep 2008 09:48:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/lighttpd-rotating-logs-with-logrotate.html#comment-144821</guid>
		<description>Is it possible to do something like that :


&quot;/var/log/lighttpd/*/*.log&quot;

thanks for your help !</description>
		<content:encoded><![CDATA[<p>Is it possible to do something like that :</p>
<p>&#8220;/var/log/lighttpd/*/*.log&#8221;</p>
<p>thanks for your help !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: aman</title>
		<link>http://www.cyberciti.biz/tips/lighttpd-rotating-logs-with-logrotate.html#comment-140686</link>
		<dc:creator>aman</dc:creator>
		<pubDate>Sat, 04 Aug 2007 12:18:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/lighttpd-rotating-logs-with-logrotate.html#comment-140686</guid>
		<description>What is this crond above refers to if u please tell me then its really helpful to me</description>
		<content:encoded><![CDATA[<p>What is this crond above refers to if u please tell me then its really helpful to me</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nixcraft</title>
		<link>http://www.cyberciti.biz/tips/lighttpd-rotating-logs-with-logrotate.html#comment-57147</link>
		<dc:creator>nixcraft</dc:creator>
		<pubDate>Thu, 11 Jan 2007 12:13:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/lighttpd-rotating-logs-with-logrotate.html#comment-57147</guid>
		<description>Colin,

Thanks for sharing newsyslog configuration directive 

Appreciate your post.</description>
		<content:encoded><![CDATA[<p>Colin,</p>
<p>Thanks for sharing newsyslog configuration directive </p>
<p>Appreciate your post.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Colin</title>
		<link>http://www.cyberciti.biz/tips/lighttpd-rotating-logs-with-logrotate.html#comment-56615</link>
		<dc:creator>Colin</dc:creator>
		<pubDate>Thu, 11 Jan 2007 01:31:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/lighttpd-rotating-logs-with-logrotate.html#comment-56615</guid>
		<description>Sigh... it got truncated:

/var/log/lighttpd.access.log  www:www   644  7     *    $D0   B     /var/run/lighttpd.pid

(If you have lighttpd running as a different user/group than www, modify accordingly.)</description>
		<content:encoded><![CDATA[<p>Sigh&#8230; it got truncated:</p>
<p>/var/log/lighttpd.access.log  www:www   644  7     *    $D0   B     /var/run/lighttpd.pid</p>
<p>(If you have lighttpd running as a different user/group than www, modify accordingly.)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Colin</title>
		<link>http://www.cyberciti.biz/tips/lighttpd-rotating-logs-with-logrotate.html#comment-56613</link>
		<dc:creator>Colin</dc:creator>
		<pubDate>Thu, 11 Jan 2007 01:29:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/lighttpd-rotating-logs-with-logrotate.html#comment-56613</guid>
		<description>Oops, left out the owner:group parameter:

/var/log/lighttpd.access.log  www</description>
		<content:encoded><![CDATA[<p>Oops, left out the owner:group parameter:</p>
<p>/var/log/lighttpd.access.log  www</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Colin</title>
		<link>http://www.cyberciti.biz/tips/lighttpd-rotating-logs-with-logrotate.html#comment-56589</link>
		<dc:creator>Colin</dc:creator>
		<pubDate>Thu, 11 Jan 2007 00:28:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/lighttpd-rotating-logs-with-logrotate.html#comment-56589</guid>
		<description>If you are running BSD, you can use BSD&#039;s newsyslog to do the same. Just add this line to /etc/newsyslog.conf:

/var/log/lighttpd.access.log   \
           644  7     *    $D0 \
           B     /var/run/lighttpd.pid

It rotates the lighttpd access log everyday at midnight, saves seven previous logs, and sends -HUP to lighttpd. See &quot;man newsyslog.conf&quot; for more information.</description>
		<content:encoded><![CDATA[<p>If you are running BSD, you can use BSD&#8217;s newsyslog to do the same. Just add this line to /etc/newsyslog.conf:</p>
<p>/var/log/lighttpd.access.log   \<br />
           644  7     *    $D0 \<br />
           B     /var/run/lighttpd.pid</p>
<p>It rotates the lighttpd access log everyday at midnight, saves seven previous logs, and sends -HUP to lighttpd. See &#8220;man newsyslog.conf&#8221; for more information.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.189 seconds -->
