Hi guys,
Maybe someone knows a bit more in configuring NLOG than I do.
I'm trying to send all logs generated by the JobServer-Component to a Windows Eventlog instead of to a file. Up until now I didn't succeed :-/
What I did so far is:
Downloaded the Windows Eventlog "sink" from nlog and copy the dlls to the OIM-Directory.
"Installed" the dlls with Nuget
Registered the dlls with .Net-Libraries in the OS
The error message I see in the nlog-verbose-log is:
2023-07-14 19:35:38.7420 Warn Error has been raised. Exception: NLog.NLogConfigurationException: Target 'One Identity' not found for logging rule: *.
The corresponding config in global.cfg is:
<extensions>
<add assembly="NLog.WindowsEventLog" />
</extensions>
<targets>
<default-wrapper xsi:type="AsyncWrapper" batchSize="1000" overflowAction="Block" timeToSleepBetweenBatches="0" />
<target xsi:type="EventLog"
name="One Identity"
source="One Identity Manager"
eventId="${event-properties:EventId:whenEmpty=0}"
layout="${message}${newline}${exception:format=ToString}" />
</targets>
Maybe anyone can help me in configuring Nlog correctly?
Cheers,
Philipp