[syslog-ng]syslog2ng not working on Solaris10

Ed Ravin syslog-ng@lists.balabit.hu
Wed, 22 Dec 2004 21:45:37 -0500


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?