<br><font size=2 face="sans-serif">I don't rotate the log files hourly - its a straight out of the box Redhat 7.3 system. My script creates a temporary file containing the entries for the previous hour and then it analyses that file. It also requires that you set the mailscanner option log spam to yes so that the info is logged in the file. On a busy server this may well make you log files pretty large.</font>
<br>
<br><font size=2 face="sans-serif">I will be posting the script when I've tidied it up a bit.</font>
<br>
<br><font size=2 face="sans-serif">-----------------------------------------------------------------<br>
David While<br>
Technical Development Manager<br>
Faculty of Computing, Information &amp; English<br>
University of Central England<br>
Tel: 0121 331 6211</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td>
<td><font size=1 face="sans-serif"><b>Matt &lt;hciss@HCIWS.COM&gt;</b></font>
<br><font size=1 face="sans-serif">Sent by: MailScanner mailing list &lt;MAILSCANNER@JISCMAIL.AC.UK&gt;</font>
<p><font size=1 face="sans-serif">16/10/2002 19:20</font>
<br><font size=1 face="sans-serif">Please respond to MailScanner mailing list</font>
<br>
<td><font size=1 face="Arial">&nbsp; &nbsp; &nbsp; &nbsp; </font>
<br><font size=1 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; To: &nbsp; &nbsp; &nbsp; &nbsp;MAILSCANNER@JISCMAIL.AC.UK</font>
<br><font size=1 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; cc: &nbsp; &nbsp; &nbsp; &nbsp;</font>
<br><font size=1 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; Subject: &nbsp; &nbsp; &nbsp; &nbsp;Re: MRTG Help again</font></table>
<br>
<br>
<br><font size=2 face="Courier New">&gt; I update my graphs every hour with a 30 minute interval. I don't produce<br>
&gt; the exact graphs you want but do have a summary page with graphs of mail,<br>
&gt; spam and viruses.<br>
<br>
How do you get the log file to rotate hourly?<br>
<br>
Matt<br>
<br>
&gt; Also I produce a list of viruses detected and domains that we have<br>
received<br>
&gt; spam from. Mostly these end up being IP numbers but I'm working on that.<br>
&gt;<br>
&gt; You can see the output at http://www.boys-brigade.org.uk/mrtg/<br>
</font>
<br>
<br>