Graylog中的编码消息

时间:2017-04-14 21:46:06

标签: logging wildfly wildfly-10 graylog2 graylog

我有以下问题:我按照此处所述安装了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>

然而它无法正常工作:

  1. 我在graylog的输入中未知设施
  2. 消息以某种方式编码
  3. 设施 未知

    FULL_MESSAGE R O 0 W &gt;ò 7QbbD

    有没有人知道这个配置有什么问题?当我使用控制台发送UDP数据包时,它似乎正常显示。

    感谢您的帮助

0 个答案:

没有答案