Skip to content
This repository was archived by the owner on Jan 16, 2018. It is now read-only.
This repository was archived by the owner on Jan 16, 2018. It is now read-only.

Messages not sending #32

Description

@BouncyLlama

Hi,
I am experiencing some strange behavior when trying to use the UDP functionality. Basically the majority of messages are never sent. Using the code here:

for(int i=0;i<10000;i++){
            System.out.println("Logging a thing");
            logger.info("testing thing "+i);
            System.out.println("Logged a thing");

        }

and config here:

 <?xml version="1.0" encoding="UTF-8"?>
<configuration status="OFF" packages="org.graylog2.log4j2">
    <appenders>
        <GELF name="gelfAppender" server="<server>" port="4444" protocol="UDP"  hostName="<hostname>">
            <PatternLayout pattern="%logger{36} - %msg%n"/>
            <Filters>
                <MarkerFilter  marker="FLOW" onMatch="DENY" onMismatch="NEUTRAL"/>
                <MarkerFilter  marker="EXCEPTION" onMatch="DENY" onMismatch="ACCEPT"/>
            </Filters>

        </GELF>
    </appenders>
    <Loggers>
        <Root level="info">
            <AppenderRef ref="gelfAppender"/>
        </Root>
    </Loggers>
</configuration> 

I would expect all 10,000 messages to send, and a (small) number to be lost in transit. What actually happens is only 2-3k are sent, and a small number are lost in transit. I've verified what is sent/received with a packet capture on both ends.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions