How to enable logging for a support package?

This article applies to all MetaDefender Email Gateway Security releases deployed on Windows and Linux systems.

Windows

Reference link: https://www.opswat.com/docs/mdemail/configuration#hkey_local_machinesoftwareopswatmetadefender-email-securitylogger

  1. Create an empty log file

Create folder logs in C:\Program Files\OPSWAT\MetaDefender Email Security\data\logs

Open Notepad with Administrator mode. Name the file egs.log with “save as filetype” set to “All files” to the location: C:\Program Files\OPSWAT\MetaDefender Email Security\data\logs

  1. Create 3 registry strings

Open the registry and navigate to location:

Computer\HKEY_LOCAL_MACHINE\SOFTWARE\OPSWAT\Metadefender Email Security\logger

logfile: set value to location C:\Users\NACXlab\Downloads\todaymdemailsecurity-5.7.7-support-20250507154006746\log\email\egs.log

loglevel: set value to info

log_rotation: set value to true

the log file specified by the logfile entry is rotated after 24 hours from creation.

The last 30 log files are stored, the oldest log file will be deleted if number of files reaches the limit. The logfile entry must be set for this option to work

  1. Restart the “OPSWAT MetaDefender Email Gateway Security” service

Restarting the service will allow the change it take effect.

Best to perform during a maintenance period, when emails are not processing

  1. View log and generate support package

https://www.opswat.com/docs/mdemail/troubleshooting/how-to-create-support-package#generating-support-packages

If Further Assistance is required, please proceed to log a support case or chatting with our support engineer.

Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard