[syslog-ng]using perl module with syslog-ng

Ravi Malghan rmalghan@yahoo.com
Wed, 18 Jul 2001 17:11:37 -0400


This is a multi-part message in MIME format.

------=_NextPart_000_00CA_01C10FAC.B449C6D0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I noticed that the syslog module on default uses udp port 514 when used =
as below. I am running the syslog-ng deamon
on a tcp port 4477 which is why I was not getting the logs.

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
use Sys::Syslog;

openlog('Test', 'pid', 'user');
$n=3D$ARGV[0];
syslog('err', 'Logging a Test Message %d', $n);
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

How do I specify it to use a tcp port to use instead?

Thanks
Ravi

------=_NextPart_000_00CA_01C10FAC.B449C6D0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4522.1800" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>I noticed that the syslog module on =
default uses=20
udp port 514 when used as below. I am running the syslog-ng =
deamon</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>on a tcp port 4477 which is why I was =
not getting=20
the logs.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial =
size=3D2>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>use Sys::Syslog;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>openlog('Test', 'pid',=20
'user');<BR>$n=3D$ARGV[0];<BR>syslog('err', 'Logging a Test Message %d', =

$n);</FONT></DIV>
<DIV><FONT face=3DArial =
size=3D2>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<BR></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>How do I specify it to use a tcp port =
to use=20
instead?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks</FONT></DIV>
<DIV><FONT face=3DArial><FONT =
size=3D2>Ravi</FONT></DIV></FONT></BODY></HTML>

------=_NextPart_000_00CA_01C10FAC.B449C6D0--