hi,
have following setup for Logstash-to-Logstash Communication between 2 servers :
Amazon Linux machine
Logstash version : 7.x
And this is my logstash.conf file:
input {
stdin { }
}
output {
lumberjack {
codec => json
ssl => true
hosts => ["hostname"]
port => 5000
ssl_certificate => "/root/server.cert"
}
}
As you can see, at the input section I used stdin and output i am using lumberjack. when i try to start logstash i get below error
[Converge PipelineAction::Create] agent - Failed to execute action {:action=>LogStash::PipelineAction::Create/pipeline_id:main, :exception=>"LogStash::ConfigurationError", :message=>"Something is wrong with your configuration.", :backtrace=>["/usr/share/logstash/logstash-core/lib/logstash/config/mixin.rb:87:in config_init'", "/usr/share/logstash/logstash-core/lib/logstash/outputs/base.rb:60:in
initialize'", "org/logstash/config/ir/compiler/OutputStrategyExt.java:170:in initialize'", "org/logstash/config/ir/compiler/OutputDelegatorExt.java:48:in
initialize'", "org/logstash/config/ir/compiler/OutputDelegatorExt.java:30:in initialize'", "org/logstash/plugins/PluginFactoryExt.java:242:in
plugin'", "org/logstash/plugins/PluginFactoryExt.java:140:in buildOutput'", "org/logstash/execution/JavaBasePipelineExt.java:50:in
initialize'", "/usr/share/logstash/logstash-core/lib/logstash/java_pipeline.rb:24:in initialize'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline_action/create.rb:36:in
execute'", "/usr/share/logstash/logstash-core/lib/logstash/agent.rb:325:in `block in converge_state'"]}
[INFO ] 2019-09-26 08:13:55.643 [Api Webserver] agent - Successfully started Logstash API endpoint {:port=>9600}
[INFO ] 2019-09-26 08:14:00.518 [LogStash::Runner] runner - Logstash shut down.
On other end i have below configuration.
input {
beats {
port => 5000
ssl => true
ssl_certificate => "/root/server.cert"
ssl_key => "/root/server.key"
}
}
output {
stdout {}
kafka {
codec => json
bootstrap_servers => ["kafkahostname:9092"]
topic_id => "TopicName"
}
}