syslog2ng not working on Solaris10
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
On Wed, Dec 22, 2004 at 05:40:31PM -0800, Majumdar, Anamitra wrote:
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
Look at the first few lines of syslog2ng: #!/usr/bin/awk -f # # syslog2ng # # Translator from syslog.conf to syslog-ng.conf # by Jonathan W. Marks <j-marks@uiuc.edu> You probably don't have /usr/bin/awk - maybe Sun keeps it in /bin, /usr/ucb, or some other directory?
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
participants (3)
-
Ed Ravin
-
Majumdar, Anamitra
-
Nate Campi