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
|