<?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 log rotate bug]]></title><description><![CDATA[<p dir="auto">Tested with squidGuard-squid3 1.4_4 pkg v.1.9.5</p>
<p dir="auto"><strong>/var/log/squidGuard.log</strong> is not rotated (file owned by root and written by the WebGUI)</p>
<pre><code>$ find / -name squidGuard.log
/var/log/squidGuard.log
/var/squidGuard/log/squidGuard.log
</code></pre>
<pre><code>0  	0  	*  	*  	*  	root  	/usr/bin/nice -n20 /usr/pbi/squidguard-squid3-amd64/etc/rc.d/squidGuard_logrotate 
</code></pre>
<pre><code>cat /usr/pbi/squidguard-squid3-amd64/etc/rc.d/squidGuard_logrotate
#!/bin/sh
#
# This file generated automaticly with SquidGuard configurator
# Rotates the block logfile
tail -1000 /var/squidGuard/log/block.log &gt; /var/squidGuard/log/block.log.0
tail -1000 /var/squidGuard/log/block.log.0 &gt; /var/squidGuard/log/block.log
rm -f /var/squidGuard/log/block.log.0
# Rotates the squidguard GUI logile
tail -1000 /var/squidGuard/log/squidGuard.log &gt; /var/squidGuard/log/squidGuard.log.0
tail -1000 /var/squidGuard/log/squidGuard.log.0 &gt; /var/squidGuard/log/squidGuard.log
rm -f /var/squidGuard/log/squidGuard.log.0
# Rotates the squidguard conf logile
tail -1000 /var/squidGuard/log//sg_configurator.log &gt; /var/squidGuard/log//sg_configurator.log.0
tail -1000 /var/squidGuard/log//sg_configurator.log.0 &gt; /var/squidGuard/log//sg_configurator.log
rm -f /var/squidGuard/log//sg_configurator.log.0
</code></pre>
]]></description><link>https://forum.netgate.com/topic/67498/squidguard-log-rotate-bug</link><generator>RSS for Node</generator><lastBuildDate>Sun, 15 Nov 2026 06:27:12 GMT</lastBuildDate><atom:link href="https://forum.netgate.com/topic/67498.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 05 Apr 2014 09:21:49 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to SquidGuard log rotate bug on Sat, 05 Apr 2014 09:43:29 GMT]]></title><description><![CDATA[<p dir="auto">I forgot to say that squid is trying also to write to <strong>/var/log/squidGuard.log</strong></p>
<pre><code>cat /var/squid/logs/cache.log | grep /var/log/squidGuard.log
2014-04-05 11:19:04 [23381] (squidGuard): can't write to logfile /var/log/squidGuard.log
</code></pre>
<p dir="auto">My work around</p>
<pre><code>cd /var/log
rm /var/log/squidGuard.log 
ln -s /var/squidGuard/log/squidGuard.log squidGuard.log
</code></pre>
<p dir="auto">Everything ok and no more logs from squidGuard at squid cache.log</p>
]]></description><link>https://forum.netgate.com/post/452937</link><guid isPermaLink="true">https://forum.netgate.com/post/452937</guid><dc:creator><![CDATA[bellera]]></dc:creator><pubDate>Sat, 05 Apr 2014 09:43:29 GMT</pubDate></item></channel></rss>