GELF message from log4j2 not parsed


#1

Hi everybody,

i am using a log4j2 socket appender to send gelf messages to graylog:

<Socket name="Graylog" protocol="tcp" host="graylog.domain.com" port="12201">
  <GelfLayout host="someserver" compressionType="OFF" />
</Socket>

I have two problems:

  1. According to the log4j2 documentation (log4j2 gelf layout) i can use the attribute includeNullDelimiter. When i do i get the following error:

2018-10-30 11:23:12,581 main ERROR GelfLayout contains an invalid element or attribute “includeNullDelimiter”

  1. I am receiving messages, however the message is not parsed, i.e. the message is the complete json string and i dont have any additional fields:

{“guid”:“dhdR/ybCWmYBAAByf1SXiQsICgQA”,“timestamp”:1540896964105,“applicationType”:“CLIENT”,“message”:"Error connecting to url xxx, failed for heartbeat check ",“stackTrace”:“org.test.Exception”,“messageId”:30032}

Can anybody tell me what i am doing wrong?

Best regards!


(system) #2

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.