Redigera

Dela via


Disable Logging Events to the Windows Application Log

Because the Business Central Server events are always logged to the Application and Services Logs, you can disable logging Business Central Servere Windows Application log and not lose any data. The Windows Application log contains events from several applications and components. Disabling logging to the Windows Application log enables you to limit the amount of data that is stored.

Important

If you are using System Center Operations Manager to monitor Business Central Server do not disable logging to the Windows Application log. If you do, monitoring will not work.

To disable logging to the Windows Applications Log, you can use the Business Central Server Administration tool or modify the Business Central Server configuration file (CustomSettings.config).

To configure custom telemetry logging to the Windows Application log by using the Business Central Server Administration tool

Important

Starting in Business Central 2022 release wave 2 (v21), the Business Central Server Administration tool is no longer available. Use the Business Central Administration Shell instead.

  1. To start the Business Central Server Administration tool, choose Start, and in the Search programs and files box, type Business Central Administration, and then choose the related link.

  2. In the left pane, under Console root, select the Business Central Server

  3. In the center pane, choose the Edit button.

  4. Under General, clear the Enable Event Logging to Windows Application Log check box.

  5. Choose the Save button, and then choose the OK button.

    You must restart the Business Central Serveror the changes to take effect.

  6. To restart, the Business Central Serverin the left pane, select the Business Central computer.

    Unless you are administering a remote computer, this is Business Central (local).

  7. In the center pane, right-click an instance, and then choose Restart.

To disable logging to the Windows Application log by modifying the CustomSettings.config file

  1. Open the CustomSettings.config file for the Business Central Servern a text editor, such as Notepad.

    By default, the file is located in the C:\Program Files\Microsoft Dynamics 365 Business Central\NNN\Service folder or C:\Program Files\Microsoft Dynamics 365 Business Central\NNN\Service\Instances\<instancename> folder (for multitenant installations).

  2. Set the EnableApplicationChannelLog setting to false.

  3. Save the file, and then restart the Business Central Server

Monitoring Business Central Server Events Using Event Viewer
Monitoring Business Central Server Events