Solaris 10 x86 configuration not working
Hello, I've been using version 2 for a couple of years and decided to upgrade one of my systems to version 3, but my syslog-ng.conf file doesn't seem to work. I can't figure out the error and am hoping someone can give me a hand. Here's the error: # /usr/local/sbin/syslog-ng -v -s -f /etc/syslog-ng/syslog-ng.conf Error parsing command line arguments: Conversion from character set '646' to 'UTF-8' is not supported Here's a sanitized version of my conf file: /etc/syslog-ng/syslog-ng.conf options { stats(0); sync(0); time_reopen(1); log_fifo_size(4096); long_hostnames(off); use_dns(no); use_fqdn(no); create_dirs(yes); keep_hostname(yes); }; source sys { sun-streams("/dev/log" door("/etc/.syslog_door")); internal(); udp(); tcp(ip("0.0.0.0") port(5150) max-connections(300)); }; filter notdebug { level(info...emerg); }; destination perhost { file("/var/log/perhost/$HOST.log.$YEAR$MONTH$DAY"); }; log { source(sys); filter(notdebug); destination(perhost); }; destination syslogserver { tcp("10.1.1.20" port(5150)); }; log { source(sys); filter(notdebug); destination(syslogserver); }; Any suggestions?
On Fri, 2009-04-03 at 21:57 +0300, mwilson@hjf.org wrote:
Here's the error:
# /usr/local/sbin/syslog-ng -v -s -f /etc/syslog-ng/syslog-ng.conf Error parsing command line arguments: Conversion from character set '646' to 'UTF-8' is not supported
This has nothing to do with your config file per se. I had this issue myself and it took a while to figure out where the problem was. What is needed is a charset.alias file; in my case I put it in /usr/local/lib/charset.alias. I put in a generic one I simply plucked off the web for Solaris 10 since that was enough to make syslog-ng run properly, but you could probably just generate one using the config.charset script if you have that. Here is what I used: --- # This file contains a table of character encoding aliases, # suitable for operating system 'solaris2.10'. # It was automatically generated from config.charset. 646 ASCII ISO8859-1 ISO-8859-1 ISO8859-2 ISO-8859-2 ISO8859-3 ISO-8859-3 ISO8859-4 ISO-8859-4 ISO8859-5 ISO-8859-5 ISO8859-6 ISO-8859-6 ISO8859-7 ISO-8859-7 ISO8859-8 ISO-8859-8 ISO8859-9 ISO-8859-9 ISO8859-15 ISO-8859-15 koi8-r KOI8-R ansi-1251 CP1251 BIG5 BIG5 Big5-HKSCS BIG5-HKSCS gb2312 GB2312 GBK GBK GB18030 GB18030 cns11643 EUC-TW 5601 EUC-KR ko_KR.johap92 JOHAB eucJP EUC-JP PCK SHIFT_JIS TIS620.2533 TIS-620 UTF-8 UTF-8
Here's the error:
# /usr/local/sbin/syslog-ng -v -s -f /etc/syslog-ng/syslog-ng.conf Error parsing command line arguments: Conversion from character set '646' to 'UTF-8' is not supported
This has nothing to do with your config file per se. I had this issue myself and it took a while to figure out where the problem was.
What is needed is a charset.alias file; in my case I put it in /usr/local/lib/charset.alias. I put in a generic one I simply plucked off the web for Solaris 10 since that was enough to make syslog-ng run properly, but you could probably just generate one using the config.charset script if you have that.
I had the same problem with Solaris 10 Sparc ... I just add the following link : ln -s /usr/lib/charset.alias /usr/local/lib/charset.alias
On Wed, 2009-04-08 at 11:04 +0300, ANDREY Serge wrote:
Here's the error:
# /usr/local/sbin/syslog-ng -v -s -f /etc/syslog-ng/syslog-ng.conf Error parsing command line arguments: Conversion from character set '646' to 'UTF-8' is not supported
What is needed is a charset.alias file; in my case I put it in /usr/local/lib/charset.alias. I put in a generic one I simply I had the same problem with Solaris 10 Sparc ...
I just add the following link :
ln -s /usr/lib/charset.alias /usr/local/lib/charset.alias
In my case there is no charset.alias in /usr/lib so that wouldn't work for me, but then again the OS install(s) I have area customized and minimized, which may be why. But clearly one solution is to have a charset.alias file in /usr/local/lib regardless of how you get it there. :)
participants (3)
-
ANDREY Serge
-
Kimmo Jaskari
-
mwilson@hjf.org