[syslog-ng]syslog2ng not working on Solaris10

Nate Campi syslog-ng@lists.balabit.hu
Thu, 23 Dec 2004 11:08:51 -0800


Use /usr/bin/nawk, change the shebang line and it's fine:

$ cat /etc/syslog.conf | ./syslog2ng      
awk: syntax error near line 12
awk: illegal statement near line 12
awk: syntax error near line 52
awk: illegal statement near line 52
awk: syntax error near line 55
awk: bailing out near line 55

Change the first line of syslog2ng from "#!/usr/bin/awk -f" to
"#!/usr/bin/nawk -f" and...

$ cat /etc/syslog.conf | ./syslog2ng 
options { dir_perm(0755); perm(0644); chain_hostnames(no);
          keep_hostname(yes); };

source local {
        sun-streams("/dev/log");
        udp(ip(0.0.0.0) port(514));
        internal();
};

....more and more syslog-ng config

On Wed, Dec 22, 2004 at 05:40:31PM -0800, Majumdar, Anamitra wrote:
> Hello,
> 
> I need to convert some existing syslog.conf files to the syslog-ng configuration.
> There is an utility syslog2ng which is packaged with syslog-ng.
> But does not work on solaris 10.
> 
> I am having the folowing error
> 
>  ./syslog2ng <syslog.conf> syslog-ng.conf
> ./syslog2ng: BEGIN: not found
> ./syslog2ng: getline: not found
> ./syslog2ng: syntax error at line 9: `close' unexpected
> 
> 
> 
> Anamitra
> X4696
> 
> _______________________________________________
> syslog-ng maillist  -  syslog-ng@lists.balabit.hu
> https://lists.balabit.hu/mailman/listinfo/syslog-ng
> Frequently asked questions at http://www.campin.net/syslog-ng/faq.html
> 

-- 
Nate

Don't go around saying the world owes you a living; the world owes you 
nothing; it was here first." - Samuel Clemens