For Mysql, you can have better performance using the ARCHIVE engine (data are compressed but delete queries aren't available and select queries take much more time than Myisam..) combined the partionning feature (based on the day of year's parity or something...) in 
5.1 version.<br>You won&#39;t need to lock any table, just drop the partition and recreate it.<br><br>It doesn&#39;t change anything about password security issues ;-)<br><br>Regards<br><br>Erwan<br><br><div><span class="gmail_quote">
2007/9/6, Alexander Clouter &lt;<a href="mailto:ac56@soas.ac.uk">ac56@soas.ac.uk</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br><br>Alexander Clouter &lt;<a href="mailto:ac56@soas.ac.uk">ac56@soas.ac.uk</a>&gt; [20070906 14:15:58 +0100]:<br>&gt;<br>&gt; Hi,<br>&gt;<br>&gt; [snipped]<br>&gt;<br>&gt; ======<br>&gt; USE cheese-database;<br>&gt; LOCK TABLES chedder READ;
<br>&gt; DELETE........;<br>&gt; UNLOCK TABLES;<br>&gt; ======<br>&gt;<br>replace &#39;READ&#39; with &#39;WRITE&#39;, or even &#39;LOW_PRIORITY WRITE&#39;.<br><br>D&#39;oh :)<br><br>&gt; Then &#39;echo -e &quot;[client]\npassword=&lt;password&gt;\n&quot; &gt; ~/.my.cnf&#39; and then you
<br>&gt; run (in a cron job):<br>&gt;<br>&gt; $ cat cmds.sql | mysql -u &lt;user&gt;<br>&gt;<br>just so you know, this all came from:<br><br><a href="http://dev.mysql.com/doc/refman/5.1/en/password-security.html">http://dev.mysql.com/doc/refman/5.1/en/password-security.html
</a><br><br>Cheers<br><br>Alex<br><br>&gt; &gt; -----Original Message-----<br>&gt; &gt; From: <a href="mailto:syslog-ng-bounces@lists.balabit.hu">syslog-ng-bounces@lists.balabit.hu</a> [mailto:<a href="mailto:syslog-ng-bounces@lists.balabit.hu">
syslog-ng-bounces@lists.balabit.hu</a>] On Behalf Of Geller, Sandor (IT)<br>&gt; &gt; Sent: Thursday, September 06, 2007 6:10 AM<br>&gt; &gt; To: Syslog-ng users&#39; and developers&#39; mailing list<br>&gt; &gt; Subject: Re: [syslog-ng] Log Rotation
<br>&gt; &gt;<br>&gt; &gt; Hello,<br>&gt; &gt;<br>&gt; &gt; &gt; I am logging locally to<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; destination hosts {<br>&gt; &gt; &gt; file(&quot;/opt/log/HOSTS/$YEAR/$MONTH/$DAY/$HOST/$PROGRAM&quot;
<br>&gt; &gt; &gt; owner(root) group(root) perm(0600) dir_perm(0700) create_dirs(yes));};<br>&gt; &gt;<br>&gt; &gt; Why do you want to rotate these??? New files will be created every<br>&gt; &gt; day. Simply delete the old ones if you need to reclaim space.
<br>&gt; &gt;<br>&gt; &gt; &gt; I am also logging to a mysql database<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; destination d_mysql { pipe(&quot;/tmp/mysql.pipe&quot; template(&quot;INSERT<br>&gt; &gt; &gt; INTO logs (host, facility, priority, level, tag, date, time,
<br>&gt; &gt; &gt; program, msg) VALUES (&#39;$HOST&#39;, &#39;$FACILITY&#39;, &#39;$PRIORITY&#39;,<br>&gt; &gt; &gt; &#39;$LEVEL&#39;, &#39;$TAG&#39;, &#39;$YEAR-$MONTH-$DAY&#39;, &#39;$HOUR:$MIN:$SEC&#39;,<br>&gt; &gt; &gt; &#39;$PROGRAM&#39;, &#39;$MSG&#39;);\n&quot;) template-escape(yes)); };
<br>&gt; &gt;<br>&gt; &gt; Sorry, I still don&#39;t understand what do you want to achieve.<br>&gt; &gt;<br>&gt; &gt; Log rotation or log retention ?<br>&gt; &gt;<br>&gt; &gt; regards,<br>&gt; &gt;<br>&gt; &gt; Sandor<br>
&gt; &gt; --------------------------------------------------------<br>&gt; &gt;<br>&gt; &gt; NOTICE: If received in error, please destroy and notify sender. Sender does not intend to waive confidentiality or privilege. Use of this email is prohibited when received in error.
<br>&gt; &gt; _______________________________________________<br>&gt; &gt; syslog-ng maillist&nbsp;&nbsp;-&nbsp;&nbsp;<a href="mailto:syslog-ng@lists.balabit.hu">syslog-ng@lists.balabit.hu</a><br>&gt; &gt; <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng">
https://lists.balabit.hu/mailman/listinfo/syslog-ng</a><br>&gt; &gt; Frequently asked questions at <a href="http://www.campin.net/syslog-ng/faq.html">http://www.campin.net/syslog-ng/faq.html</a><br>&gt; &gt;<br>&gt; &gt; _______________________________________________
<br>&gt; &gt; syslog-ng maillist&nbsp;&nbsp;-&nbsp;&nbsp;<a href="mailto:syslog-ng@lists.balabit.hu">syslog-ng@lists.balabit.hu</a><br>&gt; &gt; <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng">https://lists.balabit.hu/mailman/listinfo/syslog-ng
</a><br>&gt; &gt; Frequently asked questions at <a href="http://www.campin.net/syslog-ng/faq.html">http://www.campin.net/syslog-ng/faq.html</a><br>&gt; &gt;<br>&gt; &gt;<br>&gt; _______________________________________________
<br>&gt; syslog-ng maillist&nbsp;&nbsp;-&nbsp;&nbsp;<a href="mailto:syslog-ng@lists.balabit.hu">syslog-ng@lists.balabit.hu</a><br>&gt; <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng">https://lists.balabit.hu/mailman/listinfo/syslog-ng
</a><br>&gt; Frequently asked questions at <a href="http://www.campin.net/syslog-ng/faq.html">http://www.campin.net/syslog-ng/faq.html</a><br>&gt;<br>&gt;<br>_______________________________________________<br>syslog-ng maillist&nbsp;&nbsp;-&nbsp;&nbsp;
<a href="mailto:syslog-ng@lists.balabit.hu">syslog-ng@lists.balabit.hu</a><br><a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a><br>Frequently asked questions at 
<a href="http://www.campin.net/syslog-ng/faq.html">http://www.campin.net/syslog-ng/faq.html</a><br><br></blockquote></div><br>