Thank you for that Badger; my first error is resolved now. I made the change and now I get a 'name or service not known' error:
Preformatted text Sending Logstash's logs to C:/Users/.../Documents/logstash-6.3.1/logstash-6.3.1/logs which is now configured via log4j2.properties
[2018-07-30T14:28:08,686][WARN ][logstash.config.source.multilocal] Ignoring the 'pipelines.yml' file because modules or command line options are specified
[2018-07-30T14:28:09,325][INFO ][logstash.runner ] Starting Logstash {"logstash.version"=>"6.3.1"}
[2018-07-30T14:28:13,554][INFO ][logstash.pipeline ] Starting pipeline {:pipeline_id=>"main", "pipeline.workers"=>4, "pipeline.batch.size"=>125, "pipeline.batch.delay"=>50}
[2018-07-30T14:28:13,667][ERROR][logstash.pipeline ] Error registering plugin {:pipeline_id=>"main", :plugin=>"<LogStash::Inputs::Http host=>"https://feed.source.com/1.0/json/A9575E946
35332E9928FD237049", port=>443, response_headers=>{"api_key"=>"zBA7goakSY9w1A7aHA"}, id=>"a13502ffdee5a1ea8db80433cbaccfcd084dfcccdfa2ebc00dcd448d12", enable_metric=>true, codec=><Log
Stash::Codecs::Plain id=>"plain_878fd503-b46f-4ba5-86e4-5f7b35627690", enable_metric=>true, charset=>"UTF-8">, threads=>4, ssl=>false, verify_mode=>"none", additional_codecs=>{"application/json
"=>"json"}>", :error=>"initialize: name or service not known", :thread=>"#<Thread:0x5cbf7850 run>"}
[2018-07-30T14:28:13,727][ERROR][logstash.pipeline ] Pipeline aborted due to error {:pipeline_id=>"main", :exception=>#<SocketError: initialize: name or service not known>, :backtrace=>["org/jr
uby/ext/socket/RubyTCPServer.java:124:in `initialize'", "org/jruby/RubyIO.java:875:in `new'", "C:/Users/.../Documents/logstash-6.3.1/logstash-6.3.1/vendor/bundle/jruby/2.3.0/gems/puma-2.16.0-java/l
ib/puma/binder.rb:234:in `add_tcp_listener'", "(eval):2:in `add_tcp_listener'", "C:/Users/.../Documents/logstash-6.3.1/logstash-6.3.1/vendor/bundle/jruby/2.3.0/gems/logstash-input-http-3.0.10/lib/l
ogstash/inputs/http.rb:119:in `register'", "C:/Users/.../Documents/logstash-6.3.1/logstash-6.3.1/logstash-core/lib/logstash/pipeline.rb:340:in `register_plugin'", "C:/Users/.../Documents/logstas
h-6.3.1/logstash-6.3.1/logstash-core/lib/logstash/pipeline.rb:351:in `block in register_plugins'", "org/jruby/RubyArray.java:1734:in `each'", "C:/Users/.../Documents/logstash-6.3.1/logstash-6.3.1/l
ogstash-core/lib/logstash/pipeline.rb:351:in `register_plugins'", "C:/Users/.../Documents/logstash-6.3.1/logstash-6.3.1/logstash-core/lib/logstash/pipeline.rb:498:in `start_inputs'", "C:/Users/.../
Documents/logstash-6.3.1/logstash-6.3.1/logstash-core/lib/logstash/pipeline.rb:392:in `start_workers'", "C:/Users/.../Documents/logstash-6.3.1/logstash-6.3.1/logstash-core/lib/logstash/pipeline.
rb:288:in `run'", "C:/Users/.../Documents/logstash-6.3.1/logstash-6.3.1/logstash-core/lib/logstash/pipeline.rb:248:in `block in start'"], :thread=>"#<Thread:0x5cbf7850 run>"}
[2018-07-30T14:28:13,764][ERROR][logstash.agent ] Failed to execute action {:id=>:main, :action_type=>LogStash::ConvergeResult::FailedAction, :message=>"Could not execute action: PipelineAct
ion::Create, action_result: false", :backtrace=>nil}
[2018-07-30T14:28:14,092][INFO ][logstash.agent ] Successfully started Logstash API endpoint {:port=>9600}
When I execute the cURL command in a shell, it works and the response looks like this:
{"TIMESTAMP_UTC":"2018-07-30 18:30:48.769","RP_STORY_ID":"07C09A1D59151060EDABFB98AA2C1CE9","RP_ENTITY_ID":"B65303","ENTITY_TYPE":"COMP","ENTITY_NAME":"AstraZeneca PLC","COUNTRY_CODE":"GB","RELEVANCE":3,"EVENT_SENTIMENT_SCORE":null,"EVENT_RELEVANCE":null,"EVENT_SIMILARITY_KEY":null,"EVENT_SIMILARITY_DAYS":null,"TOPIC":null,"GROUP":null,"TYPE":null,"SUB_TYPE":null,"PROPERTY":null,"FACT_LEVEL":null,"RP_POSITION_ID":null,"POSITION_NAME":null,"EVALUATION_METHOD":null,"MATURITY":null,"EARNINGS_TYPE":null,"EVENT_START_DATE_UTC":null,"EVENT_END_DATE_UTC":null,"REPORTING_PERIOD":null,"REPORTING_START_DATE_UTC":null,"REPORTING_END_DATE_UTC":null,"RELATED_ENTITY":null,"RELATIONSHIP":null,"CATEGORY":null,"EVENT_TEXT":null,"NEWS_TYPE":"PRESS-RELEASE","RP_SOURCE_ID":"5A5702","SOURCE_NAME":"Benzinga","CSS":0.02,"NIP":-0.40,"PEQ":0,"BEE":1,"BMQ":1,"BAM":0,"BCA":0,"BER":0,"ANL_CHG":0,"MCQ":0,"RP_STORY_EVENT_INDEX":10,"RP_STORY_EVENT_COUNT":11,"PRODUCT_KEY":"RPA","PROVIDER_ID":"BZG","PROVIDER_STORY_ID":"12100958:15513604","HEADLINE":"AMCP Partnership Forum Examines Non-Traditional Payment and Benefit Models for High-Cost Pharmaceuticals"}
How would you handle this?