# Issue with getting events over TCP output to TCP input in logstash

**URL:** <https://discuss.elastic.co/t/issue-with-getting-events-over-tcp-output-to-tcp-input-in-logstash/183506>\
**Category:** Logstash\
**Created:** [May 30, 2019, 10:49am UTC](https://discuss.elastic.co/t/issue-with-getting-events-over-tcp-output-to-tcp-input-in-logstash/183506 "2019-05-30T10:49:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![darshan](https://avatars.discourse-cdn.com/v4/letter/d/e47774/32.png) [@darshan](https://discuss.elastic.co/u/darshan)\
**Post date:** [May 30, 2019, 10:49am UTC](https://discuss.elastic.co/t/issue-with-getting-events-over-tcp-output-to-tcp-input-in-logstash/183506/1 "2019-05-30T10:49:50Z")

</div>

Hi i am try to sending events over tcp output to tcp input in logstash but i am not getting event in input side. When i run in debug(input side logstash) mode its showing some messages like

TCP output configuration

```
output {
 
    tcp {
      host => "x.x.x.x"
      port => 12345
      codec => json_lines
      }
}

```

TCP input coniguration

```
input {

  tcp {
    port => "12345"
    codec => json_lines
  }
}

```

The ouput message when i run in debug mode

```
[2019-05-30T10:44:20,905][DEBUG][logstash.codecs.jsonlines] config LogStash::Codecs::JSONLines/@enable_metric = true
[2019-05-30T10:44:20,905][DEBUG][logstash.codecs.jsonlines] config LogStash::Codecs::JSONLines/@charset = "UTF-8"
[2019-05-30T10:44:20,905][DEBUG][logstash.codecs.jsonlines] config LogStash::Codecs::JSONLines/@delimiter = "\n"
[2019-05-30T10:44:20,919][DEBUG][io.netty.util.Recycler] -Dio.netty.recycler.maxCapacity: 262144
[2019-05-30T10:44:20,919][DEBUG][io.netty.util.Recycler] -Dio.netty.recycler.maxSharedCapacityFactor: 2
[2019-05-30T10:44:20,919][DEBUG][io.netty.util.Recycler] -Dio.netty.recycler.linkCapacity: 16
[2019-05-30T10:44:20,946][DEBUG][io.netty.buffer.AbstractByteBuf] -Dio.netty.buffer.bytebuf.checkAccessible: true

```

can anyone please help me to resolve this and message size 2.15MB

---

<div class="post-metadata">

**Author:** ![pastechecker](https://avatars.discourse-cdn.com/v4/letter/p/0ea827/32.png) [@pastechecker](https://discuss.elastic.co/u/pastechecker)\
**Post date:** [May 31, 2019, 9:27am UTC](https://discuss.elastic.co/t/issue-with-getting-events-over-tcp-output-to-tcp-input-in-logstash/183506/2 "2019-05-31T09:27:08Z")

</div>

Verify that you have a TCP connectivity first.  
Can you verify using tcpdump that the message arrives on your destination port?

The data arriving to your TCP port would go to the defined heap memory space in your jvm settings.

What is the output in your input tcp configuration?  
Can you run with the rubydebug in the output section and show the results?

---

<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:** [June 28, 2019, 9:27am UTC](https://discuss.elastic.co/t/issue-with-getting-events-over-tcp-output-to-tcp-input-in-logstash/183506/3 "2019-06-28T09:27:11Z")

</div>

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