By Garth Jones
Did you know that the default log file size for all site server logs is 2.5MB? This size is too small for an average System Center 2012 Configuration Manager (CM12) site. I recommend that the site server log file size be at least 10MB in order to be able to review the log file over a 5-day period. This is very useful when troubleshooting.
While looking into a problem at a client’s, I soon discovered that their site server log file was the default size and I couldn’t do a proper investigation because the log file was overwritten too quickly. I had to increase the size of the log file.
In CM07 you could use ConfigMgr Service Manager in order to increase the size of the site server log file, but that tool was removed from the CM12 console. Instead, in CM12 you need to manually increase the log file by editing the registry yourself.
Since this information isn’t readily available, I put together the following steps to save you some time:
On your site server, open Regedit.exe and browse to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\SMS\Tracing
Here you will see each component listed under the Tracing key. As you can see in the screenshot above I have the SMS_AD_FOREST_DISCOVERY_MANAGER key selected for this example and it has a key called MaxFileSize of type REG_DWORD.
Double click this value (MaxFileSize) and change the Value data to A00000 (10MB) then click OK. The SMSExec service will need to be restarted in order for the new log file size to take effect.
Repeat this step for each component where you want the log file size changed.
If you want to return the log file back to its default size of 2.5MB, change the Value data to 280000.