No subject

Mon Aug 12 20:06:32 UTC 2013


Depending on what level(s) the developers used in the code, 
you'll receive (or not receive) different statements.

At the DEBUG level, you should catch everything if the configuration
is correct and the developers made copious use of log4j logging
statements throughout their code.  

Try never hurts to eliminate possibilities.

-----Original Message-----
From: Mike Hostetler [mailto:thehaas at]
Sent: Friday, November 01, 2002 10:41 AM
To: olug at
Subject: [olug] syslog help

I have an app on a Linux box that can send messages to the system logger
via log4j (for you Java people). I think that this would be a cool thing
to do, since the standard log files for this app are spread all over the
place.  The Linux box in question has syslog-ng installed.

The only way log4j will use the system log is via a network connection, not
sockets.  The configuration for log4j is sketchy, and I google'ed and
found no examples.  But this is what I set up in the .properties file
after much trial and error:
		  log4j.rootCategory=WARN, LogSysOut, LogFile1, LogFile2

The app starts up with no errors, so I think it's correct.

I uncommented this line in /etc/syslog-ng/syslog-ng.conf:
		  source net { udp( port(514)); }; 

Which is suppose to mean "listen on port 514 via udp".  UDP on 514 is
supposed to be the standard syslog port (according to the syslog-ng doc
and /etc/services).

So I stop and start syslog-ng, than start up my app.  But I see no
messages in any of the log files.  When I do a 'netstat -na', I don't see
anything listening on port 514:

Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address     State
tcp        0      0  *           LISTEN
tcp        0      0  *           LISTEN
tcp        0      0    *           LISTEN
tcp        0      0  *            LISTEN
tcp        0      0  ESTABLISHED
tcp        0      0 ESTABLISHED
tcp        0    316 ESTABLISHED
tcp        0      0 ESTABLISHED
udp        0      0 ESTABLISHED

So -- what I am doing wrong??  I don't have to use syslog-ng, so if there
are wizards out that that recommend something different, I'm all for it.

-- mikeh

OLUG mailing list

More information about the OLUG mailing list