Skip Menu |
 

This queue is for tickets about the Sys-Syslog CPAN distribution.

Report information
The Basics
Id: 17136
Status: resolved
Priority: 0/
Queue: Sys-Syslog

People
Owner: SAPER [...] cpan.org
Requestors: ed.schernau [...] citizensbank.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: (no value)
Fixed in: (no value)



Subject: module is putting numerical facility priority in brackets in syslog on Solaris
Download (untitled) / with headers
text/plain 451b
Here's my code: $name = "test"; $facility = "LOG_AUTH"; $priority = "LOG_INFO"; openlog($name,'',$facility); $message = "this is a test"; syslog("auth|info", $message); This produces the line: <38>test: this is a test in Solaris 8 syslog. This machine is configured to send auth.info over the wire to loghost, but that is not being sent. Its as if the facility/priority aren't being inserted properly. This is perl 5.8.0 from sunfreeware.com
Subject: Re: [rt.cpan.org #17136] module is putting numerical facility priority in brackets in syslog on Solaris
Date: Thu, 19 Jan 2006 03:02:48 +0100
To: bug-Sys-Syslog [...] rt.cpan.org
From: Sébastien Aperghis-Tramoni <saper [...] cpan.org>
Download (untitled) / with headers
text/plain 831b
Show quoted text
> This produces the line: > <38>test: this is a test > > in Solaris 8 syslog. This machine is configured to send auth.info > over the wire to loghost, but that is not being sent. Its as if the > facility/priority aren't being inserted properly. This is perl 5.8.0 > from sunfreeware.com
I can't reproduce this on Linux with sysklogd. I'll ask some Perl5 Porters who have experience with Solaris if they can reproduce this, but AFAICT the line you see is a valid RFC 3164, so my first guess would be that your syslog daemon has a problem. Or, if you mean that you don't have a syslog daemon on the host and expects the Perl program to send it to the remote loghost, you may need to call setlogsock() with an appropriate argument, for example setlogsock('udp'). -- Sébastien Aperghis-Tramoni Close the world, txEn eht nepO.
Subject: RE: [rt.cpan.org #17136] module is putting numerical facility priority in brackets in syslog on Solaris
Date: Thu, 19 Jan 2006 08:28:28 -0500
To: <bug-Sys-Syslog [...] rt.cpan.org>
From: "Schernau, Ed" <Edward.Schernau [...] CITIZENSBANK.com>
Download (untitled) / with headers
text/plain 2.1k
Thank you, I ended up sending directly to the loghost as you suggested. --Ed Show quoted text
-----Original Message----- From: Sébastien Aperghis-Tramoni via RT [mailto:bug-Sys-Syslog@rt.cpan.org] Sent: Wednesday, January 18, 2006 9:04 PM To: Schernau, Ed Subject: Re: [rt.cpan.org #17136] module is putting numerical facility priority in brackets in syslog on Solaris
> This produces the line: > <38>test: this is a test > > in Solaris 8 syslog. This machine is configured to send auth.info > over the wire to loghost, but that is not being sent. Its as if the > facility/priority aren't being inserted properly. This is perl 5.8.0 > from sunfreeware.com
I can't reproduce this on Linux with sysklogd. I'll ask some Perl5 Porters who have experience with Solaris if they can reproduce this, but AFAICT the line you see is a valid RFC 3164, so my first guess would be that your syslog daemon has a problem. Or, if you mean that you don't have a syslog daemon on the host and expects the Perl program to send it to the remote loghost, you may need to call setlogsock() with an appropriate argument, for example setlogsock('udp'). -- Sébastien Aperghis-Tramoni Close the world, txEn eht nepO. ----------------------------------------- Use of email is inherently insecure. Confidential information, including account information, and personally identifiable information, should not be transmitted via email, or email attachment. In no event shall Citizens or any of its affiliates accept any responsibility for the loss, use or misuse of any information including confidential information, which is sent to Citizens or its affiliates via email, or email attachment. Citizens does not guarantee the accuracy of any email or email attachment, that an email will be received by Citizens or that Citizens will respond to any email. This email message is confidential and/or privileged. It is to be used by the intended recipient only. Use of the information contained in this email by anyone other than the intended recipient is strictly prohibited. If you have received this message in error, please notify the sender immediately and promptly destroy any record of this email.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.