1
サーバRESTAPIを照会するためにlogstash http_pollerを使用しようとしています。私はexploreを介してサーバーpemをダウンロードし、keytoolでjksファイルを生成します。 "PKIXパス構築に失敗しました:sun.security.provider.certpath.SunCertPathBuilderException:要求されたターゲットへの有効な証明書パスが見つかりません"。何が悪いのか分からない。logstach http_poller ssl certification issue
設定以下のように:ところで
http_poller {
urls => {
restapi => {
method => get
url => "https://path_to_resources
headers => {
Accept => "application/json"
}
truststore => "/path/generated.truststore.jks"
truststore_password => "xxx"
ssl_certificate_validation => false
auth => {
user => "xxx"
password => "xxx"
}
}
}
request_timeout => 60
interval => 60000
codec => "json"
metadata_target => "http_poller_metadata"
}
}
、どのような影響かのssl_certificate_validationはfalseとして設定されていますか?
ルビーlibaryあなたはそれを解決しましたか? –