How to Enable Extra Logging in the Configuration?

Logging supports different log levels to have the desired granularity. Default logging is set to Information.

To change log level adjust MinimumLevel.Default as follows:

  • Debug: provides detailed information useful for troubleshooting.
  • Information: the default logging level, capturing general operational messages.
  • Warning: only highlights potentially harmful situations.
  • Error: logs only issues that affect functionality or cause interruptions.
  • Fatal: reserved for very critical issues that require immediate attention.

A typical appsettings.json configuration file appears as follows depends on the desired Serilog Sink:

  • for File Serilog Sink

Default maximum size of a log file is 500Mb which can be adjust by changing fileSizeLimitBytes

Rolling interval is configured to be daily by the rollingIntervalor on file size limit rollOnFileSizeLimit: true

Default limit of retained files is set to 10 using the retainedFileCountLimit property

JSON
Copy
  • for HTTP Serilog Sink
JSON
Copy
  • for Syslog Serilog Sink
JSON
Copy

Linux-based systems

Use the appsettings.json file from the configurations directory

Note: The default path on Linux is/etc/mdss/configurations.

On Linux, logging settings are applied immediately after any changes, so a system restart is not required.

Windows-based systems

On Windows systems, each service has its own logging configuration file. You can locate the appsettings.json file by navigating to the service's directory and then accessing the specific <service> folder.

Note: The default path on Windows is C:\Program Files\OPSWAT\MetaDefender Storage Security\services\.

On Windows, logging settings take effect only after the service has been restarted.

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