[syslog-ng]Problem with syslog-ng and Sys::Syslog

Jyri Hovila syslog-ng@lists.balabit.hu
Sat, 6 Sep 2003 00:05:10 +0300


Hi!

(Jarkko: Sori että häiritsen sinua tällaisella. Ajattelin että
saattaisit olla kiinnostunut.)

I'm having a weird problem with syslog-ng (version 1.5.24) and Perl
module Sys::Syslog. I use Perl 5.8.0 and OpenBSD 3.3.

When logging a timestamp using Sys::Syslog, it gets corrupted:

   This: syslog('local3|info',"TESTING - 12:34:56");

   Turns into this: Sep  5 23:49:12 my.server.com root: TESTING - 12: 34:56

Notice the extra space between "12:" and "34". The problem does *not*
occur if I do ``logger -p local3.info "TESTING - 12:34:56"''.

I don't know if the problem is actually within syslog-ng or Sys::Syslog.

Any ideas what could be wrong and how it could be fixed?

Thanks! =)

- Jyri