Inside of the Elastic Cloud Enterprise I've created an Elasticsearch and a Kibana node and haven't changed the elasticsearch.yml and kibana.yml files. Both nodes are working. I am able to log in.
This is what I get:
What do you mean? logstash.yml or the .config file?
In the logstash.yml file I've done the changes as I've written above. In the configuration file I've described the elasticsearch output plugin also as above.
where u have mentioned the certificate or truststore certificate in logstash.conf file.without that u will get
"PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target"
It means that the certificates are not trusted and does not contain the root certificate for the generated node and client certificates)
That is a bit complicated. I am using my local laptop just to do some tests with the logstash configuration file. But I don't have access to the certificate, because it is not at my machine.
On the other hand, we have a virtual machine where we've installed docker. Then we've initialized a logstash instance inside of a docker container. In the virtual machine I've placed both files: logstash.yml and the config file. The same files that I have mentioned part of them above. I've mounted both files to the container where I've started logstash.
Do I have to mount the certificate to the logstash container and give the path for the certificate to the field cacert inside of the elasticsearch output plugin? How do I configure the fields inside of elasticsearch output plugin within the logstash config file?
output {
elasticsearch {
hosts => ............
user => provide the user
password => provide the pwd
ssl => true
ssl_certificate_verification => true
truststore => "/path/to/truststore.jks"
truststore_password => changeit
}
}
I just provided the sample.Please check and configure that whether is truststore or root_ca .
I mount the crt file of my virtual machine to my logtash container. In the config file I give the path of the crt file inside of the container: cacert => "pathtoctrfile/crtfile.crt"
and in the logstash.yml I've added that: xpack.monitoring.elasticsearch.ssl.ca: pathtoctrfile/crtfile.crt
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.