# Logstash starts then stops after enabling tcp output config

**URL:** <https://discuss.elastic.co/t/logstash-starts-then-stops-after-enabling-tcp-output-config/257224>\
**Category:** Logstash\
**Created:** [December 1, 2020, 3:11pm UTC](https://discuss.elastic.co/t/logstash-starts-then-stops-after-enabling-tcp-output-config/257224 "2020-12-01T15:11:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gprimm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gprimm/32/80030_2.png) [@gprimm](https://discuss.elastic.co/u/gprimm)\
**Post date:** [December 1, 2020, 3:11pm UTC](https://discuss.elastic.co/t/logstash-starts-then-stops-after-enabling-tcp-output-config/257224/1 "2020-12-01T15:11:46Z")

</div>

I am trying to send logs to an address listening on a tcp port, but when I add the lines to an output config and restart the logstash service logstash will start for a minute and then fail. There are no errors anywhere and the service stays running it is just seized up. The syntax is correct as far as I know. My config is copied below. I'm running on version 7.10

```auto
output {
  if (( [deviceVendor] == "devvendor" and [destinationNtDomain] == "TEST") or "TEST.com" in [message] or "TEST.COM" in [message] ) {
    file {
      path => "/var/log/logstash/test/test.log"
      codec => dots
    }
    tcp {
        host => "IP address Removed"
        port => 1470
        codec => json_lines
    }
  }
}

```

---

<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:** [December 29, 2020, 3:11pm UTC](https://discuss.elastic.co/t/logstash-starts-then-stops-after-enabling-tcp-output-config/257224/2 "2020-12-29T15:11:48Z")

</div>

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