Buggy code:
public class SyslogEventHandler implements SyslogServerSessionlessEventHandlerIF { private static final Logger LOG = Logger . getLogger ( SyslogEventHandler . class ) ; @ Override public void event ( SyslogServerIF syslogServer , SocketAddress socketAddress , SyslogServerEventIF event ) { GELFMessage gelf = new GELFMessage ( ) ; if ( event instanceof GraylogSyslogServerEvent ) { GraylogSyslogServerEvent glEvent = ( ( GraylogSyslogServerEvent ) ( event ) ) ; SyslogEventHandler . LOG . debug ( ( "Received<seq2seq4repair_space>syslog<seq2seq4repair_space>message<seq2seq4repair_space>(via<seq2seq4repair_space>AMQP):<seq2seq4repair_space>" + ( event . getMessage ( ) ) ) ) ; SyslogEventHandler . LOG . debug ( ( "AMQP<seq2seq4repair_space>queue:<seq2seq4repair_space>" + ( glEvent . getAmqpReceiverQueue ( ) ) ) ) ; gelf . addAdditionalData ( "_amqp_queue" , glEvent . getAmqpReceiverQueue ( ) ) ; } else { SyslogEventHandler . LOG . debug ( ( "Received<seq2seq4repair_space>syslog<seq2seq4repair_space>message:<seq2seq4repair_space>" + ( event . getMessage ( ) ) ) ) ; } SyslogEventHandler . LOG . debug ( ( "Host:<seq2seq4repair_space>" + ( event . getHost ( ) ) ) ) ; SyslogEventHandler . LOG . debug ( ( ( ( ( "Facility:<seq2seq4repair_space>" + ( event . getFacility ( ) ) ) + "<seq2seq4repair_space>(" ) + ( Tools . syslogFacilityToReadable ( event . getFacility ( ) ) ) ) + ")" ) ) ; SyslogEventHandler . LOG . debug ( ( ( ( ( "Level:<seq2seq4repair_space>" + ( event . getLevel ( ) ) ) + "<seq2seq4repair_space>(" ) + ( Tools . syslogLevelToReadable ( event . getLevel ( ) ) ) ) + ")" ) ) ; SyslogEventHandler . LOG . debug ( ( "Raw:<seq2seq4repair_space>" + ( new String ( event . getRaw ( ) ) ) ) ) ; SyslogEventHandler . LOG . debug ( ( "Host<seq2seq4repair_space>stripped<seq2seq4repair_space>from<seq2seq4repair_space>message?<seq2seq4repair_space>" + ( event . isHostStrippedFromMessage ( ) ) ) ) ; if ( ( event . getDate ( ) ) == null ) { <START_BUG> SyslogEventHandler . LOG . info ( ( "Syslog<seq2seq4repair_space>message<seq2seq4repair_space>is<seq2seq4repair_space>missing<seq2seq4repair_space>date<seq2seq4repair_space>or<seq2seq4repair_space>could<seq2seq4repair_space>not<seq2seq4repair_space>be<seq2seq4repair_space>parsed.<seq2seq4repair_space>Not<seq2seq4repair_space>further<seq2seq4repair_space>handling.<seq2seq4repair_space>Message<seq2seq4repair_space>was:<seq2seq4repair_space>" + ( event . getRaw ( ) ) ) ) ; <END_BUG> return ; } String host = event . getHost ( ) ; try { if ( configuration . getForceSyslogRdns ( ) ) { host = Tools . rdnsLookup ( socketAddress ) ; } } catch ( UnknownHostException e ) { SyslogEventHandler . LOG . warn ( "Reverse<seq2seq4repair_space>DNS<seq2seq4repair_space>lookup<seq2seq4repair_space>failed.<seq2seq4repair_space>Falling<seq2seq4repair_space>back<seq2seq4repair_space>to<seq2seq4repair_space>parsed<seq2seq4repair_space>hostname." , e ) ; } try { gelf . setCreatedAt ( Tools . getUTCTimestampWithMilliseconds ( event . getDate ( ) . getTime ( ) ) ) ; gelf . setConvertedFromSyslog ( true ) ; gelf . setVersion ( "0" ) ; gelf . setShortMessage ( event . getMessage ( ) ) ; gelf . setFullMessage ( new String ( event . getRaw ( ) ) ) ; gelf . setHost ( host ) ; gelf . setFacility ( Tools . syslogFacilityToReadable ( event . getFacility ( ) ) ) ; gelf . setLevel ( event . getLevel ( ) ) ; gelf . setRaw ( event . getRaw ( ) ) ; } catch ( Exception e ) { SyslogEventHandler . LOG . info ( ( "Could<seq2seq4repair_space>not<seq2seq4repair_space>parse<seq2seq4repair_space>syslog<seq2seq4repair_space>message<seq2seq4repair_space>to<seq2seq4repair_space>GELF:<seq2seq4repair_space>" + ( e . toString ( ) ) ) , e ) ; return ; } if ( gelf . allRequiredFieldsSet ( ) ) { try { SimpleGELFClientHandler gelfHandler = new SimpleGELFClientHandler ( gelf ) ; gelfHandler . handle ( ) ; } catch ( Exception e ) { SyslogEventHandler . LOG . debug ( "Couldn't<seq2seq4repair_space>process<seq2seq4repair_space>message<seq2seq4repair_space>with<seq2seq4repair_space>GELF<seq2seq4repair_space>handler" , e ) ; } } else { SyslogEventHandler . LOG . info ( ( "Broken<seq2seq4repair_space>or<seq2seq4repair_space>incomplete<seq2seq4repair_space>syslog<seq2seq4repair_space>message.<seq2seq4repair_space>Not<seq2seq4repair_space>further<seq2seq4repair_space>handling.<seq2seq4repair_space>Message<seq2seq4repair_space>was:<seq2seq4repair_space>" + ( event . getRaw ( ) ) ) ) ; } } @ Override public void exception ( SyslogServerIF syslogServer , SocketAddress socketAddress , Exception exception ) { } @ Override public void initialize ( SyslogServerIF syslogServer ) { } @ Override public void destroy ( SyslogServerIF syslogServer ) { } }

Fix:
SyslogEventHandler . LOG . info ( ( "Syslog<seq2seq4repair_space>message<seq2seq4repair_space>is<seq2seq4repair_space>missing<seq2seq4repair_space>date<seq2seq4repair_space>or<seq2seq4repair_space>could<seq2seq4repair_space>not<seq2seq4repair_space>be<seq2seq4repair_space>parsed.<seq2seq4repair_space>Not<seq2seq4repair_space>further<seq2seq4repair_space>handling.<seq2seq4repair_space>Message<seq2seq4repair_space>was:<seq2seq4repair_space>" + ( new String ( event . getRaw ( ) ) ) ) ) ;