You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While running tests for elastic/logstash#5756 I noticed that if the SSL key or cert defined in the LS config are present but the logstash user cannot access them, LS throws a misleading error on startup.
OK, this error need to be solved at the logstash level I will move the issue there.
Logstash doesn't check if he can read the file, we only verify if the file exist.
Logstash will show this error if the file doesn't exist.
Invalid setting for beats input plugin:
input {
beats {
# This setting must be a path
# File does not exist or cannot be opened /Users/ph/es/certificates/bad_certificates/certificate.wwwwcrt
ssl_certificate => "/Users/ph/es/certificates/bad_certificates/certificate.wwwwcrt"
...
}
} {:level=>:error}
fetched an invalid config {:config=>"input {\n beats {\n port => 5044\n ssl => true\n ssl_certificate => \"/Users/ph/es/certificates/bad_certificates/certificate.wwwwcrt\"\n ssl_key => \"/Users/ph/es/certificates/bad_certificates/certificate.key\"\n }\n}\n\noutput {\n stdout {\n codec => dots\n }\n}\n\n", :reason=>"Something is wrong with your configuration.", :level=>:error}
~/e/logstash git:remotes/upstream/2.4 ❯❯❯ bin/logstash -f ls_tools/beats.conf
While running tests for elastic/logstash#5756 I noticed that if the SSL key or cert defined in the LS config are present but the logstash user cannot access them, LS throws a misleading error on startup.
Ideally there should be a message stating "Key/cert cannot be read - check permissions" or similar.
Logstash 5.0.0-alpha5
logstash-input-beats 3.1.0.beta4
Ubuntu 14.04.5
The text was updated successfully, but these errors were encountered: