# Not Receiving Messages in ZeroMQ Output Plugin

**URL:** <https://discuss.elastic.co/t/not-receiving-messages-in-zeromq-output-plugin/56843>\
**Category:** Logstash\
**Created:** [July 31, 2016, 11:46pm UTC](https://discuss.elastic.co/t/not-receiving-messages-in-zeromq-output-plugin/56843 "2016-07-31T23:46:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![fikse](https://avatars.discourse-cdn.com/v4/letter/f/c0e974/32.png) [@fikse](https://discuss.elastic.co/u/fikse)\
**Post date:** [July 31, 2016, 11:46pm UTC](https://discuss.elastic.co/t/not-receiving-messages-in-zeromq-output-plugin/56843/1 "2016-07-31T23:46:30Z")

</div>

I have a simple client subscribing to messages on port 2120:

```auto
zmq = require('zmq');

port = 2120;
sock = zmq.socket('sub');
sock.connect("tcp://127.0.0.1:" + port);

sock.on('message', function (topic, msg) {
  console.log('received message');
});

sock.subscribe('foo');
console.log("zeromq listening to port" + port)

```

Logstash is outputting to the zeromq plugin like this:

```nohighlight
output {
    zeromq {
      topology => "pushpull"
      topic => "foo"
    }
}

```

When I execute run logstash `./bin/logstash -f site.conf` and subscribe with my node.js client `node index`, I never receive a message. Why is that?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [August 2, 2016, 10:13am UTC](https://discuss.elastic.co/t/not-receiving-messages-in-zeromq-output-plugin/56843/2 "2016-08-02T10:13:28Z")

</div>

Are messages being pushed through the LS pipeline? Are you sure of that?

---

<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:** [July 6, 2017, 4:45am UTC](https://discuss.elastic.co/t/not-receiving-messages-in-zeromq-output-plugin/56843/3 "2017-07-06T04:45:25Z")

</div>


