Breaking logs into smaller chunks |
Post Reply |
Author | |
Desperado
Senior Member Joined: 27 January 2005 Location: United States Status: Offline Points: 1143 |
Post Options
Thanks(0)
Posted: 08 October 2004 at 1:13pm |
All, Someone, a long time ago, mentioned a problem dealing with the large log files. 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. 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. However, after 3 months of running, this has never happened. NO TECH SUPPORT on this script! Too simple! Regards, Dan S. #SpamFilter Log File Archicing For WIN NT #Get the Current Date #Archive The Log File system("rename $FullName $NewFile"); #This function gets the date and time then formats it correctly # Define arrays for the day of the week and month of the year. # # Get the current time and format the hour, minutes and seconds. Add # # Format the date. $mon++; $Suf = "a"; |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
This page was generated in 0.102 seconds.