NetXMS Support Forum

English Support => General Support => Topic started by: Sch.Donat on February 22, 2021, 06:44:44 PM

Title: UTF-8 in syslog
Post by: Sch.Donat on February 22, 2021, 06:44:44 PM
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
Title: Re: UTF-8 in syslog
Post by: Filipp Sudanov on February 22, 2021, 07:32:09 PM
You mean when setting log file as syslog, right? (LogFile = {syslog})
Title: Re: UTF-8 in syslog
Post by: Sch.Donat on February 22, 2021, 08:38:52 PM
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.
Title: Re: UTF-8 in syslog
Post by: Filipp Sudanov on February 23, 2021, 07:52:22 PM
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
Title: Re: UTF-8 in syslog
Post by: Sch.Donat on February 24, 2021, 12:05:59 AM
Thanks! I could set it to latin2 which worked for my requirements.

Best regards