Any way to monitor a log file size?
Posted on 2003-02-21
In a windows 2000 server environment - I am running a piece of server software that writes to a text based log file. The server log file grew to 9.6 Mb in 6 months (no major problem). However the system started a loop and created text entries every 0.5 second to this file.
Subsequently the log file grew to 2.25Gb in 24 hours! Major problem as this the hung the server and caused system failure.
Does anyone know of a way I can monitor the size of this filel and poll its size every 15-30 mins and if the size has increased by say 1Mb since the last poll, shut down the server services?
I run a batch script to copy of the logfile every week but being a 24/5 Helpdesk, I cant copy off while system is live, and can't shut down the software except at weekends!