UTF-8 in syslog

Started by Sch.Donat, February 22, 2021, 06:44:44 PM

Previous topic - Next topic

Sch.Donat

Hi all!

Is it possible to configure NetXMS server so it will send syslog messages encoded as UTF-8?
I'm using it on Windows, and as far as I can tell, it uses western codepage.
UTF-8 shows fine in the client, so my guess is that I should be able to set it in syslog as well.

In the documentation I found that it is possible to set the syslog codepage in netxmsd.conf, but it is ignored in Windows, and there is no UTF-8 there?

Best regards

Filipp Sudanov

You mean when setting log file as syslog, right? (LogFile = {syslog})

Sch.Donat

No, that would send the messages to the Windows Event Log, if I'm not mistaken.

You can set the audit log in server configuration variables. To that server the NetXMS sends audit log as syslog, so I'm just used to it calling syslog, sorry about the confusion.

So, I'm asking about this audit log/syslog.

Filipp Sudanov

Currently on windows it's sending in encoding specified in control panel - language for non-unicode programs.

We plan to make configuration option that would turn on UTF-8 sending - progress can be tracked in this issue
https://track.radensolutions.com/issue/NX-2013

Sch.Donat

Thanks! I could set it to latin2 which worked for my requirements.

Best regards