# Not working TCP input with TLS

**URL:** <https://discuss.elastic.co/t/not-working-tcp-input-with-tls/336473>\
**Category:** Logstash\
**Created:** [June 20, 2023, 11:41am UTC](https://discuss.elastic.co/t/not-working-tcp-input-with-tls/336473 "2023-06-20T11:41:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![wedkarz014](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wedkarz014/32/48935_2.png) [@wedkarz014](https://discuss.elastic.co/u/wedkarz014)\
**Post date:** [June 20, 2023, 11:41am UTC](https://discuss.elastic.co/t/not-working-tcp-input-with-tls/336473/1 "2023-06-20T11:41:28Z")

</div>

Hi,  
I want to send syslog events but with tls, unfortunately i have a problem with that. Logstash receive first event and that's all, i don't have any error logs.  
Here is output config:

```auto
output {
  tcp {
      host => "x.x.x.x"
      port => 6514
      reconnect_interval => 1
      mode => "client"
      ssl_enable => true
      ssl_supported_protocols => "TLSv1.2"
  }
}

```

input:

```auto
input {
  tcp {
    host => "x.x.x.x"
       mode => "server"
       port => 6514
       ssl_enable => true
       ssl_verify => false
       ssl_key => "/etc/logstash/xyz-fe-pkcs8.key"
       ssl_cert => "/etc/logstash/xyz-fe.crt"
       ssl_supported_protocols => "TLSv1.2"
       tags => "test"
       type => syslog
  }
}

```

At the beginning I was trying with TLSv1.3 and after first sent event, logstash(sender) was buffering events. With TLSv1.2 after first sent event, logstash still is sending data but it's not visible in elastic. I think there is some problem with tcp input and events are being dropped.

Do you have any idea what's wrong? Logstash version 8.4.0

Best

---

<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 18, 2023, 11:42am UTC](https://discuss.elastic.co/t/not-working-tcp-input-with-tls/336473/2 "2023-07-18T11:42:03Z")

</div>

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