<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Shazbot Blog &#187; logrotate</title>
	<atom:link href="http://jamespo.org.uk/wp/archives/tag/logrotate/feed" rel="self" type="application/rss+xml" />
	<link>http://jamespo.org.uk/wp</link>
	<description></description>
	<lastBuildDate>Tue, 24 Aug 2010 20:01:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>DD-WRT router firmware and syslogd</title>
		<link>http://jamespo.org.uk/wp/archives/685</link>
		<comments>http://jamespo.org.uk/wp/archives/685#comments</comments>
		<pubDate>Tue, 11 Mar 2008 11:10:37 +0000</pubDate>
		<dc:creator>jamespo</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[dd-wrt]]></category>
		<category><![CDATA[linksys]]></category>
		<category><![CDATA[logging]]></category>
		<category><![CDATA[logrotate]]></category>
		<category><![CDATA[router]]></category>
		<category><![CDATA[syslogd]]></category>

		<guid isPermaLink="false">http://jamespo.org.uk/wp/archives/685</guid>
		<description><![CDATA[To enable your linksys router with DD-WRT firmware to log to syslog (in my case running on a Centos 4 box), first enable it in the router firmware and set the host address. Then Method 1 &#8211; Vanillla Syslogd Put this in /etc/syslogd.conf (NOTE: this may log more than you bargained for&#8230;) # linksys user.* [...]]]></description>
			<content:encoded><![CDATA[<p>To enable your linksys router with DD-WRT firmware to log to syslog (in my case running on a Centos 4 box), first enable it in the router firmware and set the host address. Then</p>
<p><strong><u>Method 1 &#8211; Vanillla Syslogd</u></strong></p>
<p>Put this in <code>/etc/syslogd.conf </code> (NOTE: this may log more than you bargained for&#8230;)</p>
<p><code># linksys<br />
user.*                                                  /var/log/router.log<br />
kernel.*                                                  /var/log/router.log</code></p>
<p>And add <code>-r</code> (enable remote logging &#8211; only do this if you know what you&#8217;re doing) to the <code>SYSLOGD_OPTIONS</code> in <code>/etc/sysconfig/syslog</code></p>
<p>Then restart syslogd.</p>
<p>Then add <code>/var/log/router.log</code> to the list of logfiles in <code>/etc/logrotate.d/syslog</code></p>
<p><u><strong>Method 2 &#8211; Syslog-NG</strong></u></p>
<p><a href="http://www.balabit.com/network-security/syslog-ng/" target="_blank">Syslog-NG</a> is an improved version of syslog, unfortunately it is not GPL. Anyway if you install it, stop &amp; disable standard syslog, then add this to the (Redhat) conf it should work.</p>
<pre>source gateway {
udp(ip(0.0.0.0) port(514));
};

source tcpgateway {
tcp(ip(0.0.0.0) port(514) max_connections(1000));
};

destination hosts {
file("/var/log/syslogs/$HOST/$FACILITY.log"
owner(root) group(root) perm(0600) dir_perm(0700)
create_dirs(yes));
};

log {
source(gateway);
destination(hosts);
};

log {
source(tcpgateway);
destination(hosts);
};</pre>
<img src="http://jamespo.org.uk/wp/?ak_action=api_record_view&id=685&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://jamespo.org.uk/wp/archives/685/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
