NOVELL FORUMS

 
 
LinkBack Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 22-Jul-2008, 11:54 AM
Junior Member
 
Join Date: Mar 2008
Posts: 18
brucetimberlake is on a distinguished road
Default Log4j-via-syslog not received by Sentinel

I have the Syslog Connector running in Sentinel, and is receiving all expected messages from the various remote servers (we added "*.* ip.ad.re.ss" to syslog.conf, so that all syslog messages are sent to Sentinel, and then are also logged locally as normal).

The issue we are having is with a Java application that is using the log4j syslog appender. Messages from log4j are being written to the local log files as expected; however, they are *not* making it to Sentinel. Using "logger" at the command line, sending to the same syslog facility and log level ("local8.info" for example) works perfectly - we get the local logging as well as an immediate Sentinel entry.

I suppose this may be more of a log4j question, but since it's not working only with regards to Sentinel, I thought I'd try here first.

In case it matters, here is the relevant piece of the log4j.properties file:

#Configuration of syslog Appender
#log4j.appender.syslog=INFO
log4j.appender.syslog=org.apache.log4j.net.SyslogA ppender
#log4j.appender.syslog.SyslogHost=127.0.0.1
#log4j.appender.syslog.SyslogHost=1.2.3.4
#log4j.appender.syslog.SyslogHost=host.example.com
#Syslog is configured to listen to UDP port 5510 instead of the default port 514. So use port:5510
log4j.appender.syslog.SyslogHost=localhost:5510
log4j.appender.syslog.Facility=LOCAL2
log4j.appender.syslog.Threshold=WARN
log4j.appender.syslog.FacilityPrinting=false
log4j.appender.syslog.layout=org.apache.log4j.Patt ernLayout
log4j.appender.syslog.layout.ConversionPattern=[%-1p] %c %m%n
Reply With Quote
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -6. The time now is 02:13 AM.


© 2007 Novell, Inc. All Rights Reserved.

SEO by vBSEO 3.1.0