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

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
  1. Click on the Start button.
  2. Select Run, and enter Regedit
  3. Navigate to (Windows x86) HKEY_LOCAL_MACHINE/SOFTWARE/Rockliffe/MailSite/logging or (Windows x64) HKEY_LOCAL_MACHINE/SOFTWARE/Wow6432Node/Rockliffe/MailSite/Logging
  4. 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
  5. Hit Enter a value in Seconds for example to keep 15 days it would be a value of 1296000
  6. OK and Exit out of Regedit
  7. Restart the services
WARNING!!
Incorrectly editing the registry can damage the server, it is best practice to backup your registry. Please proceed with caution.
For SQL Implementations
  1. Open SQL Enterprise Manager and navigate to the MailSite database
  2. Locate the MailServerProperties table
  3. Add the Following: (The Values in PropIntValue are example values for a 15 day purge interval in seconds.)
  4. 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
  5. Restart the services on each node of the platform.