# Logstash 6.1 Fatal error crashing background running logstash when stdout output plugin is used

**URL:** <https://discuss.elastic.co/t/logstash-6-1-fatal-error-crashing-background-running-logstash-when-stdout-output-plugin-is-used/114586>\
**Category:** Logstash\
**Created:** [January 8, 2018, 5:40pm UTC](https://discuss.elastic.co/t/logstash-6-1-fatal-error-crashing-background-running-logstash-when-stdout-output-plugin-is-used/114586 "2018-01-08T17:40:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ld\_pvl](https://avatars.discourse-cdn.com/v4/letter/l/cdc98d/32.png) [@ld\_pvl](https://discuss.elastic.co/u/ld_pvl)\
**Post date:** [January 8, 2018, 5:40pm UTC](https://discuss.elastic.co/t/logstash-6-1-fatal-error-crashing-background-running-logstash-when-stdout-output-plugin-is-used/114586/1 "2018-01-08T17:40:33Z")

</div>

Hi Team,

I'm getting this error while receiving data via the input plugin if stdout output plugin is used when logstash instance has been put to run in the background.

It is not a problem per se as I do not intend to use the stdout plugin when logstash is intended to be run in the background. However I do not recall this happening before so was wondering if this is a "new" thing.

`[2018-01-08T12:22:44,915][FATAL][logstash.runner] An unexpected error occurred! {:error=>#<SystemCallError: Unknown error (SystemCallError) - <STDOUT>>, :backtrace=>["org/jruby/RubyIO.java:1457:in`write'", "org/jruby/RubyIO.java:1428:in `write'", "/my/location/logstash/6.1.0/vendor/bundle/jruby/2.3.0/gems/logstash-output-stdout-3.1.3/lib/logstash/outputs/stdout.rb:44:in`block in multi\_receive\_encoded'", "org/jruby/RubyArray.java:1734:in `each'", "/my/location/logstash/6.1.0/vendor/bundle/jruby/2.3.0/gems/logstash-output-stdout-3.1.3/lib/logstash/outputs/stdout.rb:43:in`multi\_receive\_encoded'", "/my/location/logstash/6.1.0/logstash-core/lib/logstash/outputs/base.rb:90:in `multi_receive'", "/my/location/logstash/6.1.0/logstash-core/lib/logstash/output_delegator_strategies/single.rb:15:in`block in multi\_receive'", "org/jruby/ext/thread/Mutex.java:148:in `synchronize'", "/my/location/logstash/6.1.0/logstash-core/lib/logstash/output_delegator_strategies/single.rb:14:in`multi\_receive'", "/my/location/logstash/6.1.0/logstash-core/lib/logstash/output\_delegator.rb:50:in `multi_receive'", "/my/location/logstash/6.1.0/logstash-core/lib/logstash/pipeline.rb:487:in`block in output\_batch'", "org/jruby/RubyHash.java:1343:in `each'", "/my/location/logstash/6.1.0/logstash-core/lib/logstash/pipeline.rb:486:in`output\_batch'", "/my/location/logstash/6.1.0/logstash-core/lib/logstash/pipeline.rb:438:in `worker_loop'", "/my/location/logstash/6.1.0/logstash-core/lib/logstash/pipeline.rb:393:in`block in start\_workers'"]}`

This is my config:

```
input {
    tcp {
        type => "my_type"
        port => 10013
        codec => json
    }
}

filter { }

output {
    elasticsearch {
        ...
    }

    stdout { codec => rubydebug } # if I remove this then the error does not happen
}

```

Thanks for your help,

---

<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:** [February 5, 2018, 5:41pm UTC](https://discuss.elastic.co/t/logstash-6-1-fatal-error-crashing-background-running-logstash-when-stdout-output-plugin-is-used/114586/2 "2018-02-05T17:41:15Z")

</div>

Closed on February 5, 2018, 5:41pm UTC

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