<?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[SquidGuard to syslog]]></title><description><![CDATA[<p dir="auto">Didn't see a logging section so put this under General pfSense Questions. I am trying to send squidguard logs to a remote syslog server. I can accomplished this another way but I have to enable remote logging of everything under system logs - settings. it sends from local5 which points to the nginx log. I have to pick everything because pfSense does not show nginx in the list and groups it in with Everything from what i'm seeing. I'd like to just send the squidguard block.log file if possible. I attempted to use syslog-ng to do this. From what I gathered in the syslog-ng documentation, this should work.</p>
<p dir="auto">Here's my syslog-ng setup</p>
<ol>
<li>
<p dir="auto">Installed syslog-ng and created the following 3 rules under the advanced section of syslog-ng<br />
Object Name = syslog<br />
Object Type = destination<br />
Object Parameters = { syslog("10.16.1.1" port(514)); };</p>
<p dir="auto">Object Name = squidguard<br />
Object Type = source<br />
Object Parameters = { file("/var/squidGuard/log/block.log" follow-freq(1) flags(no-<br />
parse)); };</p>
<p dir="auto">Object Name = squidlog<br />
Object Type = log<br />
Object Parameters = { source(squidguard); destination(syslog); };</p>
</li>
</ol>
<p dir="auto">Anybody have any ideas how to get this working? Or am I just stuck logging everything to get what I need. Thank you in advance for your help.</p>
]]></description><link>https://forum.netgate.com/topic/131943/squidguard-to-syslog</link><generator>RSS for Node</generator><lastBuildDate>Wed, 15 Apr 2026 17:04:11 GMT</lastBuildDate><atom:link href="https://forum.netgate.com/topic/131943.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 14 Jun 2018 23:10:01 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to SquidGuard to syslog on Mon, 18 Jun 2018 15:27:36 GMT]]></title><description><![CDATA[<p dir="auto">nope, does not seem to work. Best way I've been able to get to work is by forwarding the nginx logs like I described above. Would prefer not to do it this way since tons of messages get sent when you are in the pfSense mgmt interface for a device. I'll keep trying to figure out how to just get the block.log.</p>
]]></description><link>https://forum.netgate.com/post/772735</link><guid isPermaLink="true">https://forum.netgate.com/post/772735</guid><dc:creator><![CDATA[jonspeegle]]></dc:creator><pubDate>Mon, 18 Jun 2018 15:27:36 GMT</pubDate></item><item><title><![CDATA[Reply to SquidGuard to syslog on Fri, 15 Jun 2018 23:19:46 GMT]]></title><description><![CDATA[<p dir="auto">Hmm, so did you not see any Squid logs passed to you syslog server or just no Squidguard blocked entries?</p>
<p dir="auto">Steve</p>
]]></description><link>https://forum.netgate.com/post/772479</link><guid isPermaLink="true">https://forum.netgate.com/post/772479</guid><dc:creator><![CDATA[stephenw10]]></dc:creator><pubDate>Fri, 15 Jun 2018 23:19:46 GMT</pubDate></item><item><title><![CDATA[Reply to SquidGuard to syslog on Fri, 15 Jun 2018 15:55:15 GMT]]></title><description><![CDATA[<p dir="auto">ok, so i think I've found another way to accomplish this. I added the line local5.* @10.16.1.1 at the end of the syslog section of the /etc/inc/system.inc. So it would be added to the syslog.conf each time the service is restarted or system rebooted. Now I am only getting nginx log files which appear to include the squidguard block.log contents. Now I'm just wondering if this manual config will survive version upgrades.</p>
<p dir="auto">Would be happy to hear if anyone has a better way to do this. Until then I guess I'll go with this.</p>
]]></description><link>https://forum.netgate.com/post/772348</link><guid isPermaLink="true">https://forum.netgate.com/post/772348</guid><dc:creator><![CDATA[jonspeegle]]></dc:creator><pubDate>Fri, 15 Jun 2018 15:55:15 GMT</pubDate></item><item><title><![CDATA[Reply to SquidGuard to syslog on Fri, 15 Jun 2018 14:22:10 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/stephenw10">@<bdi>stephenw10</bdi></a> I had the 'Log Pages Denied by SquidGuard already set. I put the line you specified in the Custon Options (Before Auth) but it still isn't sending to my syslog. Is there something else I'm missing? It does say you have to enter a couple line to the sgerror.php for it to work, but after doing that it still didn't.</p>
]]></description><link>https://forum.netgate.com/post/772328</link><guid isPermaLink="true">https://forum.netgate.com/post/772328</guid><dc:creator><![CDATA[jonspeegle]]></dc:creator><pubDate>Fri, 15 Jun 2018 14:22:10 GMT</pubDate></item><item><title><![CDATA[Reply to SquidGuard to syslog on Thu, 14 Jun 2018 23:33:12 GMT]]></title><description><![CDATA[<p dir="auto">You just need the Squidguard blocked traffic logs?</p>
<p dir="auto">You can have Squidguard log in to the Squid logs. In the Squid logging settings set <code>Log Pages Denied by SquidGuard</code>.</p>
<p dir="auto">Then you can have Squid send to your syslog server directly using the custom option:</p>
<pre><code>access_log udp://your_syslog_server_IP:514
</code></pre>
<p dir="auto">I set that in <code>Custom Options (Before Auth)</code>.</p>
<p dir="auto">Steve</p>
]]></description><link>https://forum.netgate.com/post/772231</link><guid isPermaLink="true">https://forum.netgate.com/post/772231</guid><dc:creator><![CDATA[stephenw10]]></dc:creator><pubDate>Thu, 14 Jun 2018 23:33:12 GMT</pubDate></item></channel></rss>