[syslog-ng] problem with accents in log messages

Nagy Daniel danieln at t-online.co.hu
Thu Apr 5 11:47:08 CEST 2007


Hello,

Got it, template_escape(no) solves the problem.

Thanks,

Daniel


Nagy Daniel wrote:
> Hello,
> 
> syslog-ng version: 2.0.2
> System: RHEL4, locale: en_US.UTF-8
> 
> Without a template in the destionation, the accented characters appear
> well:
> 
> Using this config:
> source s_net { tcp(); udp(); };
> destination d_nettest { file("/var/log/nettest.log"); };
> filter f_nettest { host(localhost); };
> log {source(s_net); filter(f_nettest); destination(d_nettest); };
> 
> Then I do a 'nc localhost 514' and type 'abbé', I properly
> receive 'Apr  5 10:49:59 localhost/localhost abbé' in
> /var/log/nettest.log.
> 
> However, using this config:
> source s_net { tcp(); udp(); };
> destination d_nettest { file("/var/log/nettest.log"
>  template ("$YEAR.$MONTH.$DAY $HOUR:$MIN:$SEC $TZOFFSET $HOST $MSG\n"));
> ); };
> filter f_nettest { host(localhost); };
> log {source(s_net); filter(f_nettest); destination(d_nettest); };
> 
> I receive this: 2007.04.05 10:48:51 +02:00 localhost abb\37777777751
> 
> Thus, 'é' is converted to '\37777777751'
> 
> Is it a known bug or am I missing something?
> 
> Thanks,
> 
> Daniel
> 
> ps: eljenek a veszpremi infosok
> _______________________________________________
> syslog-ng maillist  -  syslog-ng at lists.balabit.hu
> https://lists.balabit.hu/mailman/listinfo/syslog-ng
> Frequently asked questions at http://www.campin.net/syslog-ng/faq.html
> 


More information about the syslog-ng mailing list