Unable to write to syslog using UDP

218 views
Skip to first unread message

rja...@gmail.com

unread,
Sep 13, 2013, 1:54:56 PM9/13/13
to pwm-g...@googlegroups.com
So far I'm unable to get logging via syslog over UDP to work. The following error appears in catalina.out every time PWM attempts to log via syslog:

ERROR, event.AuditManager, 5060 ERROR_SYSLOG_WRITE_ERROR (java.net.ConnectException: Connection refused) fields: [udp,127.0.0.1,514, java.net.ConnectException: Connection refused]

I've configured 'udp,127.0.0.1,514' under 'Syslog Audit Servers', but PWM insists on using TCP. The following tcpdump output illustrates this:

There is no UDP traffic over port 514 when writing to syslog is attempted:

# tcpdump -p -nn -iany port 514 and udp
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on any, link-type LINUX_SLL (Linux cooked), capture size 96 bytes

0 packets captured
0 packets received by filter
0 packets dropped by kernel


However there is TCP traffic over port 514:

# tcpdump -p -nn -iany port 514 and tcp
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on any, link-type LINUX_SLL (Linux cooked), capture size 96 bytes
12:26:51.913284 IP 127.0.0.1.55783 > 127.0.0.1.514: S 558935668:558935668(0) win 32792 <mss 16396,sackOK,timestamp 2230524928 0,nop,wscale 7>
12:26:51.913300 IP 127.0.0.1.514 > 127.0.0.1.55783: R 0:0(0) ack 558935669 win 0

2 packets captured
4 packets received by filter
0 packets dropped by kernel


Has anyone else gotten syslog over UDP to work?

Version info:

PWM: 1.7.0 (release)
RHEL: 5.9 x86_64
Tomcat: 6.0.36

rja...@gmail.com

unread,
Sep 13, 2013, 1:58:41 PM9/13/13
to pwm-g...@googlegroups.com, rja...@gmail.com

OpenLDAP: 2.3.43

Reply all
Reply to author
Forward
0 new messages