Ask the Community
Groups
Data Backup logs consume too much disk space on Kaseya server - Connect IT Community | Kaseya
<main> <article class="userContent"> <h3 data-id="problem">Problem</h3> <p>Kaseya Data Backup (KDB) stores<em> success</em> and <em>exception</em> logs for each backup in the following location on the Kaseya server: -</p> <ul><li>c:\Kaseya\UserProfiles\<agentGUID>\Audit\KOB\kob_success_<timestamp>.log</li> <li>c:\Kaseya\UserProfiles\<agentGUID>\Audit\KOB\kob_exception_<timestamp>.log</li> </ul><p>(where <agentGUID> is the GUID of the agent that ran the backup)</p> <p>These logs are causing the Kaseya installation disk to fill up.</p> <h3 data-id="cause">Cause</h3> <p>The <em>success</em> log contains details of every file that was processed by the Backup. The <em>exception</em> log contains details of each file that could not be backed up.</p> <p>They can be accessed from hyper-links in "result" and "exception count" columns on<em> Data Backup > Backup > Logs</em> page.</p> <p>By default, these logs are retained for 90 days.</p> <h3 data-id="solution">Solution</h3> <p>There is a setting in the database where log retention can be configured as follows: -</p> <ul><li>success logs are retained only for the <em>last 3 successful backups</em> on each agent</li> <li>exception logs are retained only for the <em>last 3 backups with exceptions</em> on each agent</li> </ul><p>To apply this setting: -</p> <p>1) open SQL Server Management Studio (SSMS) on the Kaseya Database server<br>2) run this query: -</p> <blockquote class="blockquote"> <p>USE ksubscribers<br>UPDATE kserverParams<br>SET paramValue = 'True'<br>WHERE paramName = 'CleanAuditLogs'</p> </blockquote> <p> </p> <p>3) older logs will be automatically deleted the next time a KDB backup runs on each agent (if necessary, they can be deleted manually to reclaim space in emergency)</p> <p><em>Please note, once the logs have been deleted, only the summary of those jobs will be available from Data Backup > Backup > Logs page.</em></p> <p> </p> <h3 data-id="applies-to">Applies to</h3> <p>Kaseya VSA (Data Backup module) - all versions</p> </article> </main>