limit the size of the log file either based on file size or by date of entries like only keep the last 30 days worth.
I suppose I could write a small script that would limit the log file by line count which would count the total number of lines in the log file which i already have in my error detection script then i could do if “%linecount% GEQ “10000” some code that deletes the first 1000 or 5000 lines or whatever you want.