Ask the Community
Groups
How To: Deleteing (zeroing out) large log files on Windows servers - Connect IT Community | Kaseya
<main> <article class="userContent"> <p><strong>QUESTION</strong></p> <p> How do I delete or remove or shrink large log files?</p> <p><strong>RESOLUTION</strong></p> <p>Occasionally, a large log file may need to be deleted/shrunk to free up disk space and/or reset log collection for troubleshooting.</p> <p>We recommend that the webapp.log and audit.log be not resized as they contain valuable audit information.</p> <p>Please ensure there is no current issue being experienced on the system where the logs may be needed for troubleshooting.</p> <p>To zero out specific log files, open a DOS command prompt using 'Run as Administrator'' <TRAVERSE_HOME> refers to the Traverse installation directory:<br>jms.log is used as an example. You may substitute jms.log with any large fie such as service.log, monitor.log, etc.</p> <p> cd <TRAVERSE_HOME><br> cd logs<br> copy /Y NUL empty.txt<br> copy empty.txt jms.log</p> <p> </p> <p><strong>APPLIES TO</strong></p> <p>Traverse Windows implementation</p> <p> </p> <p><strong>REFERENCE</strong></p> <p>None</p> </article> </main>