# Logstash TCP json\_lines to elasticsearch won't stop printing output to stdout

**URL:** <https://discuss.elastic.co/t/logstash-tcp-json-lines-to-elasticsearch-wont-stop-printing-output-to-stdout/205407>\
**Category:** Logstash\
**Created:** [October 28, 2019, 5:59am UTC](https://discuss.elastic.co/t/logstash-tcp-json-lines-to-elasticsearch-wont-stop-printing-output-to-stdout/205407 "2019-10-28T05:59:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Blake\_Loring](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/blake_loring/32/46786_2.png) [@Blake\_Loring](https://discuss.elastic.co/u/Blake_Loring)\
**Post date:** [October 28, 2019, 5:59am UTC](https://discuss.elastic.co/t/logstash-tcp-json-lines-to-elasticsearch-wont-stop-printing-output-to-stdout/205407/1 "2019-10-28T05:59:28Z")

</div>

Hello,

I am using the logstash docker image and a pipeline from tcp to elastic search. Whenever a message is processed by logstash it is also output to stdout, even though I have logging turned to warn or above. There are no error messages, only the processed message which is sent to elasticsearch.

Is there any simple way to disable this logging to stdout?

Here are my pipeline and settings yml

```
input {
  tcp {
    port => 8001
    codec => json_lines
  }
}

filter {
  mutate {
    add_field => {
      "server_time" => "FAILED"
    }
  }

  date {
    timezone => "UTC"
    match => ["[doc][time]", "UNIX_MS" ]
    target => "server_time"
  }
}

output {
  elasticsearch {
    hosts => ["elasticsearch"]
    index => "tcp_log-%{+yyyy.MM.dd}"
  }
}

pipeline:
  batch:
    size: 500
    delay: 25
  workers: 16
config:
  debug: false
log:
  level: error
```

---

<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:** [November 25, 2019, 6:10am UTC](https://discuss.elastic.co/t/logstash-tcp-json-lines-to-elasticsearch-wont-stop-printing-output-to-stdout/205407/2 "2019-11-25T06:10:28Z")

</div>

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