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

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:inwrite'", "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:inblock 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:inmulti_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:inblock 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:inmulti_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:inblock in output_batch'", "org/jruby/RubyHash.java:1343:in each'", "/my/location/logstash/6.1.0/logstash-core/lib/logstash/pipeline.rb:486:inoutput_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:inblock 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,

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