# 10-20% message loss when using Stomp Output

**URL:** <https://discuss.elastic.co/t/10-20-message-loss-when-using-stomp-output/74501>\
**Category:** Logstash\
**Created:** [February 9, 2017, 1:02pm UTC](https://discuss.elastic.co/t/10-20-message-loss-when-using-stomp-output/74501 "2017-02-09T13:02:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mr.EoniX](https://avatars.discourse-cdn.com/v4/letter/m/cab0a1/32.png) [@Mr.EoniX](https://discuss.elastic.co/u/Mr.EoniX)\
**Post date:** [February 9, 2017, 1:02pm UTC](https://discuss.elastic.co/t/10-20-message-loss-when-using-stomp-output/74501/1 "2017-02-09T13:02:32Z")

</div>

Hi there,

We are experiencing 10-20% message drop when sending messages from Logstash 5.2 to a Universal Messaging Queue with the STOMP protocol. (Also verified with Logstash 2.4)

**Config to reproduce:**

```
input {
        tcp {
                port => 5001
                type => "umrelay"
        }
}

output {
        file {
            path => "/tmp/stash.out"
        }
        if [type] == "umrelay" {
            stomp {
                 destination => "/test/testqueue"
                 host => "x.x.x.x"
                port => 17092
            }
        }
        stdout{}
}

```

We are using python to send 100.000 messages to the Logstash TCP input - and outs the messages to a file, stomp and console.

The file contains all 100.000 messages  
The console writes all 100.000 messages  
The Stomp output produces 83.560 messages

**The loss happens at rates above 100 pr. second.**

We have verified the STOMP functionality on UM by running 100.000 messages to it directly with Python - and all messages are persisted.  
We have also tested multiple input path to logstash but we consistantly get everything written to file-out and console, but 10-20% is lost on the STOMP output.

**Operating System:**  
Source: Debian  
Target: OpenSuse

**Sample Data:**  
The message sent from Python in all experiements is "i\n" where i is the current message number in an iteration of 100.000

**Steps to reproduce:**  
Send messages to any logstash input at a message rate above 100 pr. second, and output on Stomp Output.  
Count your input and output and assess the message drop. We see about 10-20% drop.

This is a problem 🙂 - And would like to see a fix to this 😉

Best regards,

Mr.EoniX

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 9, 2017, 1:03pm UTC](https://discuss.elastic.co/t/10-20-message-loss-when-using-stomp-output/74501/2 "2017-03-09T13:03:12Z")

</div>

Closed on March 9, 2017, 1:03pm UTC

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