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 => "10.5.68.149, 10.5.68.150"
#host => "0.0.0.0" # Listen on all available network interfaces
}
}
output {
elasticsearch {
hosts => ["elasticsesarch:9200"]
user => "elastic"
password => "password"
}
}