# Configure tcp input to accept syslog over ssl

**URL:** <https://discuss.elastic.co/t/configure-tcp-input-to-accept-syslog-over-ssl/237853>\
**Category:** Logstash\
**Created:** [June 19, 2020, 7:12pm UTC](https://discuss.elastic.co/t/configure-tcp-input-to-accept-syslog-over-ssl/237853 "2020-06-19T19:12:26Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![danona45](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/danona45/32/70726_2.png) [@danona45](https://discuss.elastic.co/u/danona45)\
**Post date:** [June 19, 2020, 7:12pm UTC](https://discuss.elastic.co/t/configure-tcp-input-to-accept-syslog-over-ssl/237853/1 "2020-06-19T19:12:27Z")

</div>

```auto

This is my input config, but I don't get anything passed input in my pipeline or I would see something in my ruby debug output. No errors in the log.

> tcp {
> type => "syslog"
> port => "4000"
> tags => ["SysLog"]
> ssl_enable => true
> ssl_cert => "/usr/share/logstash/logstash_site.crt"
> ssl_key => "/usr/share/logstash/logstash-site.key"
> # ssl_extra_chain_certs => ["/usr/share/logstash/logstash_site.ca-bundle"]
> ssl_verify => false
>}

How do I configure my type argument here? is it still just "syslog"??

```

---

<div class="post-metadata">

**Author:** ![ptamba](https://avatars.discourse-cdn.com/v4/letter/p/7feea3/32.png) [@ptamba](https://discuss.elastic.co/u/ptamba)\
**Post date:** [June 20, 2020, 2:07am UTC](https://discuss.elastic.co/t/configure-tcp-input-to-accept-syslog-over-ssl/237853/2 "2020-06-20T02:07:33Z")

</div>

type doesn’t matter, it can be anything.  
you should check the sender for errors after the logstash listen on that port

---

<div class="post-metadata">

**Author:** ![danona45](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/danona45/32/70726_2.png) [@danona45](https://discuss.elastic.co/u/danona45)\
**Post date:** [June 22, 2020, 12:39am UTC](https://discuss.elastic.co/t/configure-tcp-input-to-accept-syslog-over-ssl/237853/3 "2020-06-22T00:39:08Z")

</div>

What do you mean by sender? There are no errors on the source and I can capture the traffic with tcpdump on Logstash..

---

<div class="post-metadata">

**Author:** ![ptamba](https://avatars.discourse-cdn.com/v4/letter/p/7feea3/32.png) [@ptamba](https://discuss.elastic.co/u/ptamba)\
**Post date:** [June 22, 2020, 4:23am UTC](https://discuss.elastic.co/t/configure-tcp-input-to-accept-syslog-over-ssl/237853/4 "2020-06-22T04:23:18Z")

</div>

if you're sure that the traffic has reach logstash on the designated port, then if you configure stdout output, you should see logstash printing the traffic in the stdout.

---

<div class="post-metadata">

**Author:** ![danona45](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/danona45/32/70726_2.png) [@danona45](https://discuss.elastic.co/u/danona45)\
**Post date:** [June 25, 2020, 2:39am UTC](https://discuss.elastic.co/t/configure-tcp-input-to-accept-syslog-over-ssl/237853/5 "2020-06-25T02:39:54Z")

</div>

thank you. I do send to stdout but still can't see anything.. Will it print anything even if ssl config is incorrect?

---

<div class="post-metadata">

**Author:** ![ptamba](https://avatars.discourse-cdn.com/v4/letter/p/7feea3/32.png) [@ptamba](https://discuss.elastic.co/u/ptamba)\
**Post date:** [June 25, 2020, 4:30am UTC](https://discuss.elastic.co/t/configure-tcp-input-to-accept-syslog-over-ssl/237853/6 "2020-06-25T04:30:52Z")

</div>

if you're sending output stdout, and not doing any filtering, then yes logstash will print whatever it receives in the input to stdout. If you don't see anything, then I would suspect that there's input problem.

you can try sending(from the source) and receiving the log (with logstash) without ssl to confirm whether it's ssl issue

---

<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 23, 2020, 4:30am UTC](https://discuss.elastic.co/t/configure-tcp-input-to-accept-syslog-over-ssl/237853/7 "2020-07-23T04:30:58Z")

</div>

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