Hello Everyone,
I'm trying to connect Logstash to Elasticsearch. However, it fails with the message Failed to perform request {:message=>"10.10.145.124:9200 failed to respond", :exception=>Manticore::ClientProtocolException, :cause=>org.apache.http.NoHttpResponseException: 10.10.145.124:9200 failed to respond}
Here's the configuration of Logstash in pipeline.conf:
ich versuche, die Daten aus Logstash nach Elasticsearch zu senden. Und es scheitert. Hier ist Konfiguration von Logstash in pipeline.conf:
input {
kafka {
bootstrap_servers => "10.10.145.88:9092"
topics => ["apache_logs"]
}
}
output {
elasticsearch {
hosts => ["10.10.145.124:9200"]
index => "apache_logs"
workers => 1
keystore => "/etc/logstash/certs/http.p12"
cacert => "/etc/logstash/certs/http_ca.crt"
ssl => true
ssl_certificate_verification => false
user => "logstash_system"
password => "logstash"
}
}
Here's the configuration of Elasticsearch in Elasticsearch.yml:
cluster.name: kafka-tutorial
node.name: node-1
path.data: /var/lib/elasticsearch
path.logs: /var/log/elasticsearch
network.host: 0.0.0.0
http.port: 9200
discovery.seed_hosts: "10.10.145.124"
cluster.initial_master_nodes: "node-1"
xpack.security.enabled: true
xpack.security.enrollment.enabled: true
xpack.security.http.ssl:
enabled: true
keystore.path: certs/http.p12
verification_mode: none
xpack.security.transport.ssl:
enabled: true
verification_mode: certificate
keystore.path: certs/transport.p12
truststore.path: certs/transport.p12
On the other hand, Kibana manages to connect with Elasticsearch. Here are the settings of Kibana:
# This section was automatically generated during setup.
server.port: 5601
server.host: 10.10.145.124
elasticsearch.hosts: ['https://10.10.145.124:9200']
logging.appenders.file.type: file
logging.appenders.file.fileName: /var/log/kibana/kibana.log
logging.appenders.file.layout.type: json
logging.root.appenders: [default, file]
pid.file: /run/k*# This section was automatically generated during setup.
sibana/kibana.pid
elasticsearch.serviceAccountToken: AAEAAWVsYXN0aWMva2liYW5hL2Vucm9sbC1wcm9jZXNzLXRva2VuLTE2NTUwODEzMTkyNzc6NnViY3p2enlSVnlZMUc3SVRyV3hlQQ
elasticsearch.ssl.certificateAuthorities: [/var/lib/kibana/ca_1655081320166.crt]
xpack.fleet.outputs: [{id: fleet-default-output, name: default, is_default: true, is_default_monitoring: true, type: elasticsearch, hosts: ['https://10.10.145.124:9200'], ca_trusted_fingerprint: 31e853f7f32382a58205fc0d4fb8e5d3bedf642f89a9db331838371406d0f8e5}]
I was searching desperately in this Forum. Allthough there were some similar issues, none of them helped. Do you have any suggestion? Could somebody please help me? I would be thankful for any support.
Greetings,
Milos Tepavcevic