Unable to read logs from external URIs

I am using windows 10, using following logstash.conf

input {
http{
host => "https://filesharestracc6870.blob.core.windows.net/log/logfile.log"
port => 443
codec => plain
ssl => true
}
}

the url is publically accessible. Still I am getting following error while executing command logstash -f logstash.conf

Error =>
C:\ELK\logstash-6.7.0\logstash-6.7.0\bin>logstash -f logstash.conf
Sending Logstash logs to C:/ELK/logstash-6.7.0/logstash-6.7.0/logs which is now configured via log4j2.properties
[2019-04-01T12:13:38,091][WARN ][logstash.config.source.multilocal] Ignoring the 'pipelines.yml' file because modules or command line options are specified
[2019-04-01T12:13:38,121][INFO ][logstash.runner ] Starting Logstash {"logstash.version"=>"6.7.0"}
[2019-04-01T12:13:48,416][INFO ][logstash.pipeline ] Starting pipeline {:pipeline_id=>"main", "pipeline.workers"=>2, "pipeline.batch.size"=>125, "pipeline.batch.delay"=>50}
[2019-04-01T12:13:49,127][INFO ][logstash.outputs.elasticsearch] Elasticsearch pool URLs updated {:changes=>{:removed=>, :added=>[http://localhost:9200/]}}
[2019-04-01T12:13:49,395][WARN ][logstash.outputs.elasticsearch] Restored connection to ES instance {:url=>"http://localhost:9200/"}
[2019-04-01T12:13:49,476][INFO ][logstash.outputs.elasticsearch] ES Output version determined {:es_version=>6}
[2019-04-01T12:13:49,528][WARN ][logstash.outputs.elasticsearch] Detected a 6.x and above cluster: the type event field won't be used to determine the document _type {:es_version=>6}
[2019-04-01T12:13:49,588][INFO ][logstash.outputs.elasticsearch] New Elasticsearch output {:class=>"LogStash::Outputs::ElasticSearch", :hosts=>["//localhost:9200"]}
[2019-04-01T12:13:49,601][INFO ][logstash.outputs.elasticsearch] Using default mapping template
[2019-04-01T12:13:49,677][INFO ][logstash.outputs.elasticsearch] Attempting to install template {:manage_template=>{"template"=>"logstash-", "version"=>60001, "settings"=>{"index.refresh_interval"=>"5s"}, "mappings"=>{"default"=>{"dynamic_templates"=>[{"message_field"=>{"path_match"=>"message", "match_mapping_type"=>"string", "mapping"=>{"type"=>"text", "norms"=>false}}}, {"string_fields"=>{"match"=>"", "match_mapping_type"=>"string", "mapping"=>{"type"=>"text", "norms"=>false, "fields"=>{"keyword"=>{"type"=>"keyword", "ignore_above"=>256}}}}}], "properties"=>{"@timestamp"=>{"type"=>"date"}, "@version"=>{"type"=>"keyword"}, "geoip"=>{"dynamic"=>true, "properties"=>{"ip"=>{"type"=>"ip"}, "location"=>{"type"=>"geo_point"}, "latitude"=>{"type"=>"half_float"}, "longitude"=>{"type"=>"half_float"}}}}}}}}
[2019-04-01T12:13:49,967][ERROR][logstash.pipeline ] Error registering plugin {:pipeline_id=>"main", :plugin=>"<LogStash::Inputs::Http host=>"https://filesharestracc6870.blob.core.windows.net/log/logfile.log", codec=><LogStash::Codecs::Plain id=>"plain_3d0f4f2c-d72b-4cb2-8182-31d6cb786588", enable_metric=>true, charset=>"UTF-8">, id=>"56a4bf0a7c32d75e742fd1b896d6453eda6a208624297c4fac2980e84337ac9e", port=>443, ssl=>true, enable_metric=>true, ssl_verify_mode=>"none", ssl_handshake_timeout=>10000, tls_min_version=>1, tls_max_version=>1.2, cipher_suites=>["TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384", "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384", "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256", "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256", "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384", "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384", "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256", "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256"], additional_codecs=>{"application/json"=>"json"}, response_headers=>{"Content-Type"=>"text/plain"}, remote_host_target_field=>"host", request_headers_target_field=>"headers", threads=>2, max_pending_requests=>200, max_content_length=>104857600, response_code=>200, verify_mode=>"none">", :error=>"Certificate or JKS must be configured", :thread=>"#<Thread:0x1f12ed7d run>"}
[2019-04-01T12:13:50,600][ERROR][logstash.pipeline ] Pipeline aborted due to error {:pipeline_id=>"main", :exception=>#<LogStash::ConfigurationError: Certificate or JKS must be configured>, :backtrace=>["C:/ELK/logstash-6.7.0/logstash-6.7.0/vendor/bundle/jruby/2.5.0/gems/logstash-input-http-3.3.0-java/lib/logstash/inputs/http.rb:192:in validate_ssl_settings!'", "C:/ELK/logstash-6.7.0/logstash-6.7.0/vendor/bundle/jruby/2.5.0/gems/logstash-input-http-3.3.0-java/lib/logstash/inputs/http.rb:131:inregister'", "C:/ELK/logstash-6.7.0/logstash-6.7.0/logstash-core/lib/logstash/pipeline.rb:259:in register_plugin'", "C:/ELK/logstash-6.7.0/logstash-6.7.0/logstash-core/lib/logstash/pipeline.rb:270:inblock in register_plugins'", "org/jruby/RubyArray.java:1792:in each'", "C:/ELK/logstash-6.7.0/logstash-6.7.0/logstash-core/lib/logstash/pipeline.rb:270:inregister_plugins'", "C:/ELK/logstash-6.7.0/logstash-6.7.0/logstash-core/lib/logstash/pipeline.rb:413:in start_inputs'", "C:/ELK/logstash-6.7.0/logstash-6.7.0/logstash-core/lib/logstash/pipeline.rb:311:instart_workers'", "C:/ELK/logstash-6.7.0/logstash-6.7.0/logstash-core/lib/logstash/pipeline.rb:217:in run'", "C:/ELK/logstash-6.7.0/logstash-6.7.0/logstash-core/lib/logstash/pipeline.rb:176:inblock in start'"], :thread=>"#<Thread:0x1f12ed7d run>"}
[2019-04-01T12:13:50,631][ERROR][logstash.agent ] Failed to execute action {:id=>:main, :action_type=>LogStash::ConvergeResult::FailedAction, :message=>"Could not execute action: PipelineAction::Create, action_result: false", :backtrace=>nil}

Check the documentation. "You can enable encryption by setting ssl to true and configuring the ssl_certificate and ssl_key options."

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.