<PackageReference Include="NLog" Version="6.1.0" />

NLog.Targets.EventLogTargetOverflowAction

Action that should be taken if the message is greater than the max message size allowed by the Event Log.
Discard = 2

Discard of the message. It will not be written to the Event Log.

Split = 1

Split the message and write multiple entries to the Event Log.

Truncate the message before writing to the Event Log.