How to keep the MailSite logs after 3 days
Document ID: 10540
Synopsis
By default, MailSite will purge the logs within the \Logs directory and the ByUser logs when they are over 3 days old.
More Information
How to keep the MailSite logs after 3 days
WARNING!!
Incorrectly editing the registry can damage the server, it is best practice to backup your registry. Please proceed with caution.
For SQL Implementations
By default, MailSite will purge the logs within the \Logs directory and the ByUser logs when they are over 3 days old.
To extend the logging further, append the following
Within the examples below we are using the value of 15 days and to convert the number of days to seconds this website was used to do the conversion - calculateme.com
For Registry Implementations- Click on the Start button.
- Select Run, and enter Regedit
- Navigate to (Windows x86) HKEY_LOCAL_MACHINE/SOFTWARE/Rockliffe/MailSite/logging or (Windows x64) HKEY_LOCAL_MACHINE/SOFTWARE/Wow6432Node/Rockliffe/MailSite/Logging
- Create a new DWORD (32-Bit)Value
- For logs in the Main \Logs folder create this value
- MaxLogAgeSecs
- For the ByUser logs create this value
- MaxByUserLogAgeSecs
- Hit Enter a value in Seconds for example to keep 15 days it would be a value of 1296000
- OK and Exit out of Regedit
- Restart the services
Incorrectly editing the registry can damage the server, it is best practice to backup your registry. Please proceed with caution.
- Open SQL Enterprise Manager and navigate to the MailSite database
- Locate the MailServerProperties table
- Add the Following: (The Values in PropIntValue are example values for a 15 day purge interval in seconds.)
-
ServiceName PropertyName ServerRoleId PropType PropIntValue PropStringValue logging MaxLogAgeSecs 0 (but if you have more roles one per role is needed) 4 1296000 Null logging MaxByUserLogAgeSecs 0 (but if you have more roles one per role is needed) 4 1296000 Null - Restart the services on each node of the platform.