I am new to the elastic stack and have no further experience than just google a solution. In my environment I have to use Logstash on a remote server. I can not change it. I have no control over the version which is installed. Currently it is Logstash 1.5.4 .
I want to send my log data directly to elasticsearch. Therefore I have to use a https url. Based on the old logstash version (1.5.4), I have no idea how to do it.
Some weeks ago I was sending my data to a kafka server. This works for me, but now I have different requirments so I have to change the output area of my logstash config to send data to an elastic server.
This is my current logstash configuration:
output {
elasticsearch {
protocol => http
host => "https://myelasticserver.com"
port => "443"
user => "myuser"
password => mysecretpassword
index => "classic-dev-%{+YYYY.MM.dd}"
}
}
"host" should be my elasticserver address, which is secured with basic auth.
If I run this script with my actual paramters, I get the following error:
"Failed to install template: https: Name or service not known {:level=>:error}"
Logstash 1.5.4 is very old and not compatible with recent versions. I suspect you need to either upgrade or use a MQ like Kafka as an intermediate step.
You need to use the same major version (even better the same exact version). So if you want to use LS 1.5, use Elasticsearch 1.5 which I definitely do not recommend!
Thanks for your help. I dont want to use LS 1.5, but I have no rigths to update it. So is it not possible with these different Versions of LS and ES to connect to eacht other directly (Without MQ like Kafka)?
In my case, I just dont know what I can do anymore. I know my LS version is deprecated but I have no influence on that and cannot change it. I think that LS does not connect to my "https" elasticsearch url. My current error is:
Failed to install template: https: Name or service not known {:level=>:error}
Further configurations with "ssl => ..." bring no added value.
Thanks for your suggestion. I tried this in my environment. Now this error is shown:
Failed to install template: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target {:level=>:error}
Logstash startup completed
Got error to send bulk of actions: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target {:level=>:error}
Is there a configuration in the LS output area where I can define the certification path?
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.