<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Syslog (syslog-ng) server]]></title><description><![CDATA[<p dir="auto">hello i've installed syslog-ng on this machine and I am having some trouble getting pfsense to send its logs to it. I have setup syslog-ng.conf with this:</p>
<pre><code>options { long_hostnames(off); sync(0); };

source info_src { 
#	udp(ip(192.168.0.1) port(514));
	udp(port(514));
};

destination info_dst { file(”/var/log/hosts/$HOST.log”); };
filter info_filter { level(info); };
log { source(info_src); filter(info_filter); destination(info_dst); };

</code></pre>
<p dir="auto">this is in addition to all the default entries in the syslog-ng.conf when it is installed. I'm not sure if I need to use the IP for the udp source (as the line that is commented out shows), but when I uncomment that and comment the udp that just supplies the port 514, i get this error when trying to start syslog-ng:</p>
<p dir="auto"><strong>Starting system logging: syslog-ngError binding socket; error='Cannot assign requested address (99)', addr='AF_INET(192.168.0.1:514)'</strong></p>
<p dir="auto">If someone could possibly post their working syslog.conf that allows pfsense logging, or otherwise point me in the right direction, that would be cool.. thanks</p>
]]></description><link>https://forum.netgate.com/topic/3738/syslog-syslog-ng-server</link><generator>RSS for Node</generator><lastBuildDate>Mon, 08 Jun 2026 14:14:14 GMT</lastBuildDate><atom:link href="https://forum.netgate.com/topic/3738.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 10 Mar 2007 18:37:01 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Syslog (syslog-ng) server on Thu, 22 Mar 2007 21:38:07 GMT]]></title><description><![CDATA[<p dir="auto">thanks for this info. very helpful.</p>
<p dir="auto">Going to try and use php-syslog-ng upon it :)</p>
<p dir="auto">http://sourceforge.net/projects/php-syslog-ng/<br />
or maybe<br />
http://8pussy.org/ (not porn :p syslog web interface)</p>
]]></description><link>https://forum.netgate.com/post/151584</link><guid isPermaLink="true">https://forum.netgate.com/post/151584</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Thu, 22 Mar 2007 21:38:07 GMT</pubDate></item><item><title><![CDATA[Reply to Syslog (syslog-ng) server on Mon, 12 Mar 2007 20:12:56 GMT]]></title><description><![CDATA[<p dir="auto">copying from various sources, i finally figured out how to do it. I'm pretty sure most of these are not necessary for logging pfsense, but i put them there anyways. the only pfsense log i am not getting is the "system events" which i assume logs the boot messages and everything. Does anyone know which filter line I need to do this? thanks.</p>
<pre><code>#pfsense logging#

options { sync (0);
          time_reopen (10);
          log_fifo_size (1000);
          long_hostnames (on);
          use_dns (no);
          use_fqdn (no);
          create_dirs (yes);
          keep_hostname (yes);
        };

source pf-s { udp(port(514)); };

destination pf-d_kern { file("/var/log/pfsense/$YEAR-$MONTH-$DAY/kernel"); };
destination pf-d_mesg { file("/var/log/pfsense/$YEAR-$MONTH-$DAY/messages"); };
destination pf-d_auth { file("/var/log/pfsense/$YEAR-$MONTH-$DAY/secure"); };
destination pf-d_mail { file("/var/log/pfsense/$YEAR-$MONTH-$DAY/maillog"); };
destination pf-d_uucp { file("/var/log/pfsense/$YEAR-$MONTH-$DAY/spooler"); };
destination pf-d_boot { file("/var/log/pfsense/$YEAR-$MONTH-$DAY/boot.log"); };
destination pf-d_emerg { file("/var/log/pfsense/$YEAR-$MONTH-$DAY/emerg.log"); };
destination pf-d_sshd { file("/var/log/pfsense/$YEAR-$MONTH-$DAY/sshd.log"); };
destination pf-d_pptpd { file("/var/log/pfsense/$YEAR-$MONTH-$DAY/pptpd.log"); };
destination pf-d_daemon { file("/var/log/pfsense/$YEAR-$MONTH-$DAY/daemon.log"); };
destination pf-d_firewall { file("/var/log/pfsense/$YEAR-$MONTH-$DAY/firewall.log"); };

filter pf-f_kern	{ facility(kern); };
filter pf-f_mesg 	{ level(info) and not facility(mail,authpriv,kern,local7); };
filter pf-f_auth	{ facility(authpriv); };
filter pf-f_mail 	{ facility(mail); };
filter pf-f_uucp 	{ facility(uucp); };
filter pf-f_boot        { facility(local7); };
filter pf-f_emerg     	{ level(emerg); };
filter pf-f_sshd 	{ program("sshd"); };
filter pf-f_pptpd       { match("pptpd"); };
filter pf-f_daemon 	{ facility(daemon); };
filter pf-f_firewall 	{ level(debug); };

log { source(pf-s); filter(pf-f_kern); destination(pf-d_kern); };
log { source(pf-s); filter(pf-f_mesg); destination(pf-d_mesg); };
log { source(pf-s); filter(pf-f_auth); destination(pf-d_auth); };
log { source(pf-s); filter(pf-f_mail); destination(pf-d_mail); };
log { source(pf-s); filter(pf-f_uucp); destination(pf-d_uucp); };
log { source(pf-s); filter(pf-f_boot); destination(pf-d_boot); };
log { source(pf-s); filter(pf-f_emerg); destination(pf-d_emerg); };
log { source(pf-s); filter(pf-f_sshd); destination(pf-d_sshd); };
log { source(pf-s); filter(pf-f_pptpd); destination(pf-d_pptpd); };
log { source(pf-s); filter(pf-f_daemon); destination(pf-d_daemon); };
log { source(pf-s); filter(pf-f_firewall); destination(pf-d_firewall); };
</code></pre>
]]></description><link>https://forum.netgate.com/post/150947</link><guid isPermaLink="true">https://forum.netgate.com/post/150947</guid><dc:creator><![CDATA[prophecy]]></dc:creator><pubDate>Mon, 12 Mar 2007 20:12:56 GMT</pubDate></item></channel></rss>