Can I change the size of the network services debug log file?

Article ID: 353
Category: Network Services
Applies to: and higher
Updated: 2018-11-07

Starting with version, the maximum size of the debug log file located in %SYSTEMROOT%\system32\eventsentry\logs can be adjusted with the debuglevel_ns_max_size registry value. This DWORD value specifies the maximum size of each debug log file in megabytes, consequently the total disk space used will be twice the size of the registry value.

The default size for each debug log file is 50 Mb. To adjust the maximum size of the debug log file, do the following:

  1. Open regedit.exe on the host where the size needs to be adjusted, or connect to the remote host with regedit.exe
  2. Navigate to "HKLM\Software\Wow6432Node\\EventSentry" (or "HKLM\Software\\EventSentry" on 32-bit systems)
  3. Add a new DWORD registry value called debuglevel_ns_max_size with the desired size in megabytes.
  4. Restart the "EventSentry Network Services" service for the change to become effective.

For example, if debuglevel_ns_max_size is set to 100, the debug log file(s) will consume a maximum disk space of 200 Mb.