Replies: 4 comments 8 replies
-
As you can see in the log, the hosts you configured cannot be resolved: I see you configured the following for Please note:
|
Beta Was this translation helpful? Give feedback.
-
Yes, in that case the default certificates doesn't match to the hostname anymore and normally you would have to configure a new set of certificates. See here: apigateway-openlogging-elk/env-sample Lines 607 to 637 in 413e2e5 |
Beta Was this translation helpful? Give feedback.
-
You cannot use a Self-Signed-Certificate for your Elasticsearch as you ultimately need to register the signing CA for Logstash, Filebeat & APIBuilder4Easltic with the following parameter:
Check out the cert-tool from Elastic in order to generate the certificate. Some notes are here which might help: |
Beta Was this translation helpful? Give feedback.
-
Hi @cwiechmann I will have 3 Node in my Elasticsearch-Cluster, but I want to make sure the to add the second node first to let logstash can connect to it successfully. The issue is solved when I create the below instances.yml to generate the certificates: The parameters ELASTICSEARCH_KEY and ELASTICSEARCH_CRT of two nodes on VM elk and apim are elk.crt and elk.key , and their ELASTICSEARCH_CA is pointed to the same CA. The value of my ELASTICSEARCH_HOSTS is "https://elk:9200,https://apim:9201". According to my configuration, the logstash connect to three nodes successfully, Is my successful configuration available for this solution? |
Beta Was this translation helpful? Give feedback.
-
Hi
I'm Sunny.
There are two nodes in my Elasticsearch Cluster, and they are run in different VM.
When I start to run my "logstash", I found it fails to connect to the second node (elasticsearch2) in the elasticsearch cluster,
but my "elasticsearch2" and "logstash" is still running, please find the attached "logstash-log.txt" and "kibana-monitoring.png".
I try to add the extra_hosts in "logstash" container, but it also fail to connect "elasticsearch2" and the logstash couldn't be run, because there are no the certificate of "elasticsearch2", please find the attached "logstash-log-withextrahost.txt".
Do I have to add the certificate of "elasticsearch2" in this solution?
logstash-connect.zip
Beta Was this translation helpful? Give feedback.
All reactions