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,