Register LunaClientEventProvider.dll
Windows operating systems require a LunaClientEventProvider.dll to direct logs to the Windows Event Viewer. Non-administrator users must register the LunaClientEventProvider.dll to use the Windows Event Viewer for logging. Failure to register the LunaClientEventProvider.dll will result in logs displaying in the console. The LunaClientEventProvider.dll contains the definitions of the logging events such as event ids and log levels.
The console will return the following error if the LunaClientEventProvider.dll is not registered:
[WARN] Error creating key. You need to have Administrative privileges or manually create key SYSTEM\CurrentControlSet\Services\EventLog\Application\LunaClientEventProvider [follow docs]
[WARN] RegisterEventProvider failed. Falling back to console logging
NOTE If you have the CurlLogsEnabled = true in your "crystoki.ini", the console could be flushed with a lot of information and you may not see this warning at the beginning
To add the LunaClientEventProvider.dll to the registry:
1.Open windows registry (regedit.exe)
2.Add a new key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\eventlog\Application\LunaClientEventProvider
3.Add the following values to the new key:
CategoryCount
Type : REG_DWORD
Data : 3
CategoryMessageFile
Type : REG_SZ
Data : <full path to dll, including the dll>
EventMessageFile
Type : REG_SZ
Data : < full path to dll, including the dll>
TypesSupported
Type : REG_DWORD
Data : 7
Open Your Crystoki.ini and:
4.Set the Log level (For example set via existing configuration parameter “AppLogLevel=info”)
info
warning
error
5.Add the New Config parameters
AppConsoleLogsEnabled (false by default)
(Set to true will enable console logs)
WindowsEventProvider
<Full path to LunaClientEventProvider.dll>
Crystoki.ini example:
[MISC]
WindowsEventProvider=C:\Program Files\SafeNet\LunaClient\WindowsEventProvider\LunaClientEventProvider.dll
* [REST]*
AppLogLevel=info