Hi,
I’m trying to send JBoss server’s Log4j logs to graylog server which doesn’t work and below are the steps which I did
-
Added gelfj-1.1.16.jar in the dependency and placed in the classpath
-
Added below entry in the log4j XML:
appender name=“GRAYLOG2” class=“org.graylog2.log.GelfAppender"
param name=“graylogHost” value=“172.20.105.53”/
param name=“originHost” value=“172.31.250.173”/
param name=“extractStacktrace” value=“true”/
param name=“addExtendedInformation” value=“true”/
param name=“facility” value=“gelf-java”/
param name=“Threshold” value=“INFO”/
param name=“additionalFields” value=”{‘environment’: ‘DEV’, ‘application’: ‘DWINTProduction’}"/
/appenderroot
priority value="${jboss.server.log.threshold}"/
appender-ref ref=“CONSOLE”/
appender-ref ref=“FILE”/
appender-ref ref=“GRAYLOG2”/
/root
NB: Removing "< >"
Below are my server versions
JBoss - 5.2
GrayLog - 2.2
and I don’t get any message in the greylog server - Also I don’t see any error message related to GELF/Log4j in the JBoss logs either. Could anyone please advice if I’m missing anything
Thanks in advance,
Ariv