我有以下问题:我按照此处所述安装 Graylog:
http://www.itzgeek.com/how-tos/linux/centos-how-tos/how-to-install-graylog2-on-centos-7-rhel-7.html
然后我为 Wildfly 10 配置了 GELF 模块:
http://logging.paluch.biz/examples/wildfly.html
这是我的配置:
<custom-handler name="GelfLogger" class="biz.paluch.logging.gelf.wildfly.WildFlyGelfLogHandler" module="biz.paluch.logging">
<level name="DEBUG" />
<properties>
<property name="host" value="udp:localhost" />
<property name="port" value="8514" />
<property name="version" value="1.1" />
<property name="facility" value="smarttherapy" />
<property name="extractStackTrace" value="true" />
<property name="filterStackTrace" value="false" />
<property name="includeLogMessageParameters" value="true" />
<property name="mdcProfiling" value="true" />
<property name="timestampPattern" value="yyyy-MM-dd HH:mm:ss,SSSS" />
<property name="maximumMessageSize" value="8192" />
<property name="additionalFields" value="fieldName1=fieldValue1,fieldName2=fieldValue2" />
<property name="additionalFieldTypes" value="fieldName1=String,fieldName2=Double,fieldName3=Long" />
<property name="mdcFields" value="mdcField1,mdcField2" />
<property name="dynamicMdcFields" value="mdc.*,(mdc|MDC)fields" />
<property name="includeFullMdc" value="true" />
</properties>
</custom-handler>
但是它不能正常工作:
- 我在 graylog 中输入的设施未知
- 消息以某种方式编码
设施未知
full_message ��R�O�0�W�>ò�7QbbD
有没有人知道这个配置有什么问题?当我使用控制台发送 UDP 数据包时,它看起来很正常。
谢谢你的帮助