[opensuse] syslog-ng and UDP ports.
I am trying to use syslog-ng on an openSUSE 11.2 system. I want to add an information source that is from a device I am integrating. The device sends information on UDP port 22054. When I try to get syslogd-ng to access that port, I get an error. I strace the program and see the following: bind(6, {sa_family=AF_INET, sin_port=htons(22054), sin_addr=inet_addr("192.168.1.10")}, 16) = -1 EADDRNOTAVAIL (Cannot assign requested address) which is the error I get when starting the daemon. My question is: should I be able to use such a high UDP port number here? FYI, the line in my /etc/syslog-ng/syslog-ng.conf file is: udp(ip("192.168.1.10") port(22054)); Yours sincerely, Roger Oberholtzer OPQ Systems / Ramböll RST Office: Int +46 10-615 60 20 Mobile: Int +46 70-815 1696 roger.oberholtzer@ramboll.se ________________________________________ Ramböll Sverige AB Krukmakargatan 21 P.O. Box 17009 SE-104 62 Stockholm, Sweden www.rambollrst.se -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Tue, Jan 31, 2012 at 02:09:19PM +0100, Roger Oberholtzer wrote:
I am trying to use syslog-ng on an openSUSE 11.2 system. I want to add an information source that is from a device I am integrating. The device sends information on UDP port 22054. When I try to get syslogd-ng to access that port, I get an error. I strace the program and see the following:
bind(6, {sa_family=AF_INET, sin_port=htons(22054), sin_addr=inet_addr("192.168.1.10")}, 16) = -1 EADDRNOTAVAIL (Cannot assign requested address)
which is the error I get when starting the daemon.
My question is: should I be able to use such a high UDP port number here?
FYI, the line in my /etc/syslog-ng/syslog-ng.conf file is:
udp(ip("192.168.1.10") port(22054));
yes. Does the machine this is on have the 192.168.1.10? Or is this the remote ip? Ciao, Marcus -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Tue, 2012-01-31 at 14:19 +0100, Marcus Meissner wrote:
On Tue, Jan 31, 2012 at 02:09:19PM +0100, Roger Oberholtzer wrote:
I am trying to use syslog-ng on an openSUSE 11.2 system. I want to add an information source that is from a device I am integrating. The device sends information on UDP port 22054. When I try to get syslogd-ng to access that port, I get an error. I strace the program and see the following:
bind(6, {sa_family=AF_INET, sin_port=htons(22054), sin_addr=inet_addr("192.168.1.10")}, 16) = -1 EADDRNOTAVAIL (Cannot assign requested address)
which is the error I get when starting the daemon.
My question is: should I be able to use such a high UDP port number here?
FYI, the line in my /etc/syslog-ng/syslog-ng.conf file is:
udp(ip("192.168.1.10") port(22054));
yes.
Does the machine this is on have the 192.168.1.10? Or is this the remote ip?
It is the remote IP. The local machine has 192.168.1.51 Now that you mention it, that is an alias: 3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 1000 link/ether 00:60:8c:f1:6a:3e brd ff:ff:ff:ff:ff:ff inet 10.1.5.10/24 brd 10.1.5.255 scope global eth1 inet 192.168.1.51/24 brd 192.168.1.255 scope global eth1:LTLM inet6 fe80::260:8cff:fef1:6a3e/64 scope link valid_lft forever preferred_lft forever BTW, the real fun is expected to start when I see how the open-exchange stuff to deal with log4j messages works... But getting syslog to start is the first thing. Yours sincerely, Roger Oberholtzer OPQ Systems / Ramböll RST Office: Int +46 10-615 60 20 Mobile: Int +46 70-815 1696 roger.oberholtzer@ramboll.se ________________________________________ Ramböll Sverige AB Krukmakargatan 21 P.O. Box 17009 SE-104 62 Stockholm, Sweden www.rambollrst.se -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Tue, Jan 31, 2012 at 02:31:35PM +0100, Roger Oberholtzer wrote:
On Tue, 2012-01-31 at 14:19 +0100, Marcus Meissner wrote:
On Tue, Jan 31, 2012 at 02:09:19PM +0100, Roger Oberholtzer wrote:
I am trying to use syslog-ng on an openSUSE 11.2 system. I want to add an information source that is from a device I am integrating. The device sends information on UDP port 22054. When I try to get syslogd-ng to access that port, I get an error. I strace the program and see the following:
bind(6, {sa_family=AF_INET, sin_port=htons(22054), sin_addr=inet_addr("192.168.1.10")}, 16) = -1 EADDRNOTAVAIL (Cannot assign requested address)
which is the error I get when starting the daemon.
My question is: should I be able to use such a high UDP port number here?
FYI, the line in my /etc/syslog-ng/syslog-ng.conf file is:
udp(ip("192.168.1.10") port(22054));
yes.
Does the machine this is on have the 192.168.1.10? Or is this the remote ip?
It is the remote IP. The local machine has 192.168.1.51
the above bind() call tries to bind it locally on the syslog-ng host, so you are probably confusing the config setting. Ciao, Marcus -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Tue, 2012-01-31 at 14:44 +0100, Marcus Meissner wrote:
On Tue, Jan 31, 2012 at 02:31:35PM +0100, Roger Oberholtzer wrote:
On Tue, 2012-01-31 at 14:19 +0100, Marcus Meissner wrote:
On Tue, Jan 31, 2012 at 02:09:19PM +0100, Roger Oberholtzer wrote:
I am trying to use syslog-ng on an openSUSE 11.2 system. I want to add an information source that is from a device I am integrating. The device sends information on UDP port 22054. When I try to get syslogd-ng to access that port, I get an error. I strace the program and see the following:
bind(6, {sa_family=AF_INET, sin_port=htons(22054), sin_addr=inet_addr("192.168.1.10")}, 16) = -1 EADDRNOTAVAIL (Cannot assign requested address)
which is the error I get when starting the daemon.
My question is: should I be able to use such a high UDP port number here?
FYI, the line in my /etc/syslog-ng/syslog-ng.conf file is:
udp(ip("192.168.1.10") port(22054));
yes.
Does the machine this is on have the 192.168.1.10? Or is this the remote ip?
It is the remote IP. The local machine has 192.168.1.51
the above bind() call tries to bind it locally on the syslog-ng host, so you are probably confusing the config setting.
I guess I have only two options: provide the local or the remote IP address. As to the port, it is in the range of address that this device uses for all communications. So it is the remote system's fixed UDP port number where it writes log information. Yours sincerely, Roger Oberholtzer OPQ Systems / Ramböll RST Office: Int +46 10-615 60 20 Mobile: Int +46 70-815 1696 roger.oberholtzer@ramboll.se ________________________________________ Ramböll Sverige AB Krukmakargatan 21 P.O. Box 17009 SE-104 62 Stockholm, Sweden www.rambollrst.se -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Tue, 2012-01-31 at 15:36 +0100, Roger Oberholtzer wrote:
FYI, the line in my /etc/syslog-ng/syslog-ng.conf file is:
udp(ip("192.168.1.10") port(22054));
I am better off with: udp(ip("0.0.0.0") port(22054)); Now I get the messages from the remote system. Next is to get the open-exchange log4j parser working... So, some progress. Yours sincerely, Roger Oberholtzer OPQ Systems / Ramböll RST Office: Int +46 10-615 60 20 Mobile: Int +46 70-815 1696 roger.oberholtzer@ramboll.se ________________________________________ Ramböll Sverige AB Krukmakargatan 21 P.O. Box 17009 SE-104 62 Stockholm, Sweden www.rambollrst.se -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (2)
-
Marcus Meissner
-
Roger Oberholtzer