FATAL error when stdout output plugin is used

The stdout output plugin :
output {
stdout {
codec => rubydebug
}
}
write informations on the console from which the logstash agent has been started (even in background).
But, when there is not console yet, the following FATAL error appears and the logstash agent exit :
[2018-05-16T09:18:17,218][FATAL][logstash.runner ] An unexpected error occurred! {:error=>#<SystemCallError: Unknown error (SystemCallError) - >, :backtrace=>["org/jruby/RubyIO.java:1457:in write'", "org/jruby/RubyIO.java:1428:inwrite'", "/usr/share/logstash/vendor/bundle/jruby/2.3.0/gems/logstash-output-stdout-3.1.4/lib/logstash/outputs/stdout.rb:43:in block in multi_receive_encoded'", "org/jruby/RubyArray.java:1734:ineach'", "/usr/share/logstash/vendor/bundle/jruby/2.3.0/gems/logstash-output-stdout-3.1.4/lib/logstash/outputs/stdout.rb:42:in multi_receive_encoded'", "/usr/share/logstash/logstash-core/lib/logstash/outputs/base.rb:90:inmulti_receive'", "/usr/share/logstash/logstash-core/lib/logstash/output_delegator_strategies/single.rb:15:in block in multi_receive'", "org/jruby/ext/thread/Mutex.java:148:insynchronize'", "/usr/share/logstash/logstash-core/lib/logstash/output_delegator_strategies/single.rb:14:in multi_receive'", "/usr/share/logstash/logstash-core/lib/logstash/output_delegator.rb:49:inmulti_receive'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:477:in block in output_batch'", "org/jruby/RubyHash.java:1343:ineach'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:476:in output_batch'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:428:inworker_loop'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:386:in `block in start_workers'"]}

This occured with versions 6.2.3 an 6.2.4.

whats in your logstash.yml, whats in your input, filter section, what user are you running this from the terminal as?

Hello,

In /etc/logstash/logstash.yml :

#:Version:1.0.0

path.data: /var/opt/data/flat/spngme/files/logstash

path.config: /etc/logstash/conf.d/*.conf

queue.type: persisted

path.logs: /var/opt/data/flat/spngme/files/logs

http.host: <%LS_HTTP_HOST%>

http.port: 8086

In configuration file (named config_metro.txt) :

input {

file {

path => "/var/opt/data/flat/spng/files/compteurs/work/cpt_*.csv"

start_position => "beginning"

}

}

output {

http {

http_method => ["post"]

url => ["http://<%BRK_LS_HOST%>:8081"]

}

#FATAL error if following lines are present and no console

stdout {

codec => rubydebug

}

}

The running command is (under « root » user) :

cd

/usr/share/logstash/bin/logstash --path.settings="/etc/logstash" -f config_metro.txt --debug &

Best regards

Bruno Auffret

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