<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>Spam Filter ISP Forums : Breaking logs into smaller chunks</title>
  <link>https://www.logsat.com/spamfilter/forums/</link>
  <description><![CDATA[This is an XML content feed of; Spam Filter ISP Forums : Spam Filter ISP Support : Breaking logs into smaller chunks]]></description>
  <pubDate>Sun, 19 Apr 2026 07:37:02 +0000</pubDate>
  <lastBuildDate>Fri, 08 Oct 2004 13:13:00 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 11.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>https://www.logsat.com/spamfilter/forums/RSS_post_feed.asp?TID=4409</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Spam Filter ISP Forums]]></title>
   <url>https://www.logsat.com/spamfilter/forums/forum_images/web_wiz_forums.png</url>
   <link>https://www.logsat.com/spamfilter/forums/</link>
  </image>
  <item>
   <title><![CDATA[Breaking logs into smaller chunks : All, Someone, a long time ago,...]]></title>
   <link>https://www.logsat.com/spamfilter/forums/forum_posts.asp?TID=4409&amp;PID=4409&amp;title=breaking-logs-into-smaller-chunks#4409</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.logsat.com/spamfilter/forums/member_profile.asp?PF=22">Desperado</a><br /><strong>Subject:</strong> 4409<br /><strong>Posted:</strong> 08 October 2004 at 1:13pm<br /><br /><P>All,</P><P>Someone, a long time ago, mentioned a problem dealing with the large log files.&nbsp; I use a Perl script to "Archive" the log file at noon using the windows scheduler so that I end up with 2 logs / 24 hour period.&nbsp; It is super simple and makes no "open file" checks so it could fail to archive if SpamFilter is writing to the file at that moment.&nbsp; However, after 3 months of running, this has never happened.</P><P>NO TECH SUPPORT on this script!&nbsp; Too simple!</P><P>Regards,</P><P>Dan S.</P><P>#SpamFilter Log File Archicing For WIN NT<BR>#Aug. 6 2004 Dan Seligmann, Mags Net LLC</P><P>#Get the Current Date<BR>&amp;get_date();</P><P>#Archive The Log File<BR>$Path = "d:\\SpamFilterISP\\logfiles";<BR>$FullName = "$Path\\$ActiveFile";</P><P>system("rename $FullName $NewFile");</P><P>#This function gets the date and time then formats it correctly<BR>sub get_date {</P><P>&nbsp;&nbsp;&nbsp; # Define arrays for the day of the week and month of the year.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; @days&nbsp;&nbsp; = ('Sunday','Monday','Tuesday','Wednesday',<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'Thursday','Friday','Saturday');<BR>&nbsp;&nbsp;&nbsp; @months = ('January','February','March','April','May','June','July',<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'August','September','October','November','December');</P><P>&nbsp;&nbsp;&nbsp; # Get the current time and format the hour, minutes and seconds.&nbsp; Add&nbsp;&nbsp;&nbsp; #<BR>&nbsp;&nbsp;&nbsp; # 1900 to the year to get the full 4 digit year.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #<BR>&nbsp;&nbsp;&nbsp; ($sec,$min,$hour,$mday,$mon,$year,$wday) = (localtime(time))&#091;0,1,2,3,4,5,6&#093;;<BR>&nbsp;&nbsp;&nbsp; $time = sprintf("%02d-%02d-%02d",$hour,$min,$sec);<BR>&nbsp;&nbsp;&nbsp; $year += 1900;<BR>&nbsp;&nbsp;&nbsp; $dom = sprintf("%02d",$mday);</P><P>&nbsp;&nbsp;&nbsp; # Format the date.</P><P>&nbsp;&nbsp;&nbsp; $mon++;</P><P>&nbsp;&nbsp;&nbsp; $Suf = "a";<BR>&nbsp;&nbsp;&nbsp; $date = "$mon-$mday-$year-$time";<BR>&nbsp;&nbsp;&nbsp; $ActiveFile = "$year$mon$dom.log";<BR>&nbsp;&nbsp;&nbsp; $NewFile = "$year$mon$dom$Suf.log";<BR>}<BR></P>]]>
   </description>
   <pubDate>Fri, 08 Oct 2004 13:13:00 +0000</pubDate>
   <guid isPermaLink="true">https://www.logsat.com/spamfilter/forums/forum_posts.asp?TID=4409&amp;PID=4409&amp;title=breaking-logs-into-smaller-chunks#4409</guid>
  </item> 
 </channel>
</rss>