[syslog-ng]syslog-ng problem to added a source section
Gerard Breiner
syslog-ng@lists.balabit.hu
Thu, 19 Feb 2004 19:16:52 +0100
This is a multi-part message in MIME format.
------=_NextPart_000_0036_01C3F71C.EE164E10
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hello,
1) I've just added a section source in my /etc/syslo-ng.conf . Le type =
de source is "hpux". its name is "vega" and ip address is : =
122.167.44.35.
here is the line :=20
source vega { pipe("/dev/log"); udp(ip(122.167.44.35) port(514));};
I restart syslog-ng and the result is :
Starting system logger: ..............Changing permissions on =
special file /dev/log
Error opening file /dev/log for reading (No such device or address)
I've checked the permissions of the file /dev/log on vega : ls -l =
/dev/log return : prw-rw-rw root root.
2) I've just added a section source in my /etc/syslo-ng.conf . Le type =
de source is "Linux". its name is "cerbere" and ip address is : =
129.175.64.20.
here is the line :
source cerbere { unix-stream("/dev/log"); udp(ip(129.175.64.20) =
port(514)); internal(); };
I restart syslog-ng and the result is :
Starting system logger: ..............io.c: bind_inet_socket() bind =
failed 129.175.64.17:514 Cannot assign requested address
permissions is : srw-rw-rw- 1 root root.
I' m wondering where is the problem.
If you've a bright idea...
Best regards
G=E9rard Breiner
Service Informatique
Institut d'Astrophysique Spatiale
91405 Orsay Campus
------=_NextPart_000_0036_01C3F71C.EE164E10
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 6.00.2800.1400" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Hello,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>1) I've just added a section =
source in=20
my /etc/syslo-ng.conf . Le type de source is "hpux". its name is "vega" =
and ip=20
address is : 122.167.44.35.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2> here is the line=20
: </FONT></DIV>
<DIV><FONT face=3DArial size=3D2> source vega { =
pipe("/dev/log");=20
udp(ip(122.167.44.35) port(514));};</FONT></DIV>
<DIV><FONT face=3DArial size=3D2> I restart =
syslog-ng and=20
the result is :</FONT></DIV>
<DIV><FONT face=3DArial size=3D2> Starting system =
logger:=20
..............Changing permissions on special file=20
/dev/log<BR> Error opening file /dev/log for reading =
(No such=20
device or address)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2> I've checked the =
permissions of=20
the file /dev/log on vega : ls -l /dev/log return : prw-rw-rw root=20
root.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>2) I've just added a section =
source in=20
my /etc/syslo-ng.conf . Le type de source is "Linux". its name is =
"cerbere" and=20
ip address is : 129.175.64.20.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>
<DIV><FONT face=3DArial size=3D2>here is the line :</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>source cerbere { =
unix-stream("/dev/log");=20
udp(ip(129.175.64.20) port(514)); internal(); };</FONT></DIV>
<DIV>I restart syslog-ng and the result is :</DIV></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Starting system logger: =
..............io.c:=20
bind_inet_socket() bind failed 129.175.64.17:514 Cannot assign requested =
address</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>permissions is : </FONT><FONT =
face=3DArial=20
size=3D2>srw-rw-rw- 1 root =20
root.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>I' m wondering where is the =
problem.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>If you've a bright idea...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Best regards</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>G=E9rard Breiner<BR>Service =
Informatique<BR>Institut=20
d'Astrophysique Spatiale<BR>91405 Orsay =
Campus</FONT></DIV></BODY></HTML>
------=_NextPart_000_0036_01C3F71C.EE164E10--