|
Perl interface to syslog under Solaris: msg#00029syslog-ng
Hi, I am using the Perl interface to syslog (called Sys::Syslog) under Solaris. A lot of people are complaining that it doesn't work, especially with the "stream" support, and I had to switch to udp(). My problem is that I am using template("$MSG\n") for logging, which seems to work for other udp sources, but produces a: "myPerlProgram: log message" instead of a simple "log message" in the logs. It is the same value as in my openlog() ident option, and if I use an empty ident, I get: "root: log message" instead. Can anyone give an example how not to insert such a prefix in my messages? I really would like to use the "stream" interface instead of udp() because Perl makes many assumptions on where and how I'd like to log. Here's my Perl init: use Sys::Syslog qw(:DEFAULT setlogsock); setlogsock('inet'); openlog('', '', 'local7'); I feel desperate, -- Loïc Minier <lool@xxxxxxxx> _______________________________________________ syslog-ng maillist - syslog-ng@xxxxxxxxxxxxxxxx https://lists.balabit.hu/mailman/listinfo/syslog-ng Frequently asked questions at http://www.campin.net/syslog-ng/faq.html |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Syslog-ng timed sync: 00029, Hugh Clark |
|---|---|
| Next by Date: | Help with binaries?: 00029, Riner, Donald R (Zero Chaos) |
| Previous by Thread: | Syslog-ng timed synci: 00029, Hugh Clark |
| Next by Thread: | Re: Perl interface to syslog under Solaris: 00029, Balazs Scheidler |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |