This repository has been archived by the owner on Jun 29, 2023. It is now read-only.
PortUnreachableException is logged as ERROR null via Log4j2 #126
Labels
type: bug
A general bug
Milestone
Having configured application to use GELF UDP transport and pointing it to a GrayLog server that is currently down produces "null" message after every attempt to send message to log server.
Messages are logged through log4j2 StatusLogger on ERROR level / there is no stack trace associated so I cannot pinpoint location in logger code that produces such message.
logstash-gelf version is 1.11.1 downloaded from Maven central repository.
Configuration is as follows:
Add graylog appender
appender.graylog2.type=Gelf
appender.graylog2.name=graylog2
appender.graylog2.host=udp:somehost.somedomain.com
appender.graylog2.port=12201
appender.graylog2.version=1.1
appender.graylog2.facility=logstash-gelf
appender.graylog2.extractStackTrace=true
appender.graylog2.filterStackTrace=true
appender.graylog2.maximumMessageSize=10485760
add graylog appender to root logger
rootLogger.appenderRef.graylog2.ref = graylog2
Steps to reproduce:
The text was updated successfully, but these errors were encountered: