Logstash failing to starting due to the error related to the "i18n" gem

I am getting the below error:

[2023-10-18T17:37:02,573][FATAL][logstash.runner] An unexpected error occurred! {:error=>#<ArgumentError: wrong number of arguments (given 2, expected 0..1)>, :backtrace=>["/usr/share/logstash/vendor/bundle/jruby/3.1.0/gems/i18n-1.14.1/lib/i18n.rb:210:in `translate'", "/usr/share/logstash/logstash-core/lib/logstash/java_pipeline.rb:427:in `inputworker'", "/usr/share/logstash/logstash-core/lib/logstash/java_pipeline.rb:405:in `block in start_input'"]}

PFB, logstash configuration of the same:

logstash configuration for creating a simple

Beats -> Logstash -> Elasticsearch pipeline.

input {
beats {
port => 5044
host => ","
#host => "" # Listen on all available network interfaces

output {
elasticsearch {
hosts => ["elasticsesarch:9200"]
user => "elastic"
password => "password"


Over at github there is an open issue for this, although that is perhaps a duplicate of another recent issue.

Might be fixed by downgrading to 8.9.x or even 8.8.x.

May be related to the JRuby update in 8.10. The i18n code has extensive comments about how calls to the .t alias will fail in different versions of ruby. The call is here.

1 Like

Dowgrading logstash to 8.9.x worked for me. Thanks

Can you try to remove/comment the line:
# host => ","

According to the doc, should be a string, not an array.

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