Skip to main content

LevelBlue Completes Acquisition of Cybereason.  Learn More

LevelBlue Completes Acquisition of Cybereason.  Learn More

Services
Cyber Advisory
Managed Cloud Security
Data Security
Managed Detection & Response
Email Security
Managed Network Infrastructure Security
Exposure Management
Security Operations Platforms
Incident Readiness & Response
SpiderLabs Threat Intelligence
Solutions
BY TOPIC
Offensive Security
Solutions to maximize your security ROI
Operational Technology
End-to-end OT security
Microsoft Security
Unlock the full power of Microsoft Security
Securing the IoT Landscape
Test, monitor and secure network objects
Why LevelBlue
About Us
Awards and Accolades
LevelBlue SpiderLabs
LevelBlue Security Operations Platforms
Security Colony
Partners
Microsoft Security
Unlock the full power of Microsoft Security
Technology Alliance Partners
Key alliances who align and support our ecosystem of security offerings
Loading...
Loading...

HOWTO: Limiting Text Log entries with Regular Expressions

Expand / Collapse


This article applies to:

  • Trustwave MailMarshal (SEG) 
  • Trustwave ECM/MailMarshal Exchange 7.X

Question:

  • How can I stop certain information from being logged to the MailMarshal text logs? 

Procedure:

Current versions of MailMarshal allow you to limit what is logged to text logs using Regular Expression matching.

This facility is available for the Receiver, Engine, Sender, Controller, and Array Manager services.

To enable this filtering, for MailMarshal 8.X and ECM, add a Registry entry LogFilter for each service, and enter a Regular Expression that defines the entries you do not want to see in the logs.

For MailMarshal (SEG) 10 and above:

  • Add the values for Receiver, Engine, and Sender in the Advanced Settings section of the Management Console
  • Add the value for Array Manager in the arraymanager.config.json file
  • Add the value for Controller in the controller.config.json file on each node

Remember to back up the json files before editing.

Note: For details of the registry/Advanced setting locations for each MailMarshal version, see the following Knowledge Base articles:

For example, the following Registry value would stop logging of rules that do not apply to a message recipient.
  • In MailMarshal 10.0 and above, open the Management Console and navigate to Advanced Settings. Add a new value:
    • Name: Engine.LogFilter
    • Type: string
    • Value: 0 user\(s\) match rule| Name=U.*False
  • In MailMarshal 8.X and below, and ECM, open the Registry Editor on the Array Manager. Within the base registry key, navigate to \Default\Engine
    • In version 8.X: HKEY_LOCAL_MACHINE\SOFTWARE\Trustwave\Secure Email Gateway\Default\Engine
    • For information about the registry location for each version, see article Q10832.
    • Enter the value as a new REG_SZ value named LogFilter. 
    • Set the value to : 0 user\(s\) match rule| Name=U.*False
  • Save your registry settings or configuration settings.
  • Commit the configuration changes and restart the MailMarshal Engine service on each node.

Notes:

  • The example value entry includes  \ (backslash) characters. These are used to allow the Regular Expression to match the literal parentheses.
  • For the Manager and Controller entries in json files, you must also consider json escaping. For example, a literal backslash must be escaped as \\

Notes:

  • This is an advanced feature. Only administrators familiar with MailMarshal logs, and who regularly review the logs, should set filters.
  • Invalid regular expression syntax can cause the affected service to not start.
  • In current MailMarshal versions, logging of redundant "not triggered" lines is greatly reduced and filtering is usually unnecessary.
  • When requesting help from Trustwave Technical Support, you will usually be requested to disable any log filtering.
  • To apply the Registry changes, you must
  1. Commit configuration changes
  2. Restart the affected service(s) on each server.

Warning: Using the Registry Editor incorrectly can cause serious problems that may require you to reinstall your operating system. Trustwave cannot guarantee that problems resulting from the incorrect use of Registry Editor can be solved. Make sure that you back up your Registry prior to making any changes.

 


To contact LevelBlue about this article or to request support:


Rate this Article:
     

Add Your Comments


Comment submission is disabled for anonymous users.
Please send feedback to Trustwave Technical Support or the Webmaster
.