This repository has been archived by the owner on Nov 15, 2020. It is now read-only.
Plugin causes x-pack monitoring pipeline to fail #20
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
When x-pack monitoring is enabled, logstash-output-kinesis causes the monitoring pipeline to fail with error message:
[2017-07-05T22:22:48,722][ERROR][logstash.pipeline ] Error registering plugin {:plugin=>"#<LogStash::OutputDelegator:0x14a3a5d9 @namespaced_metric=#<LogStash::Instrument::NamespacedNullMetric:0x35df2ac8 @metric=#<LogStash::Instrument::NullMetric:0x7f8fa04d @collector=#<LogStash::Instrument::Collector:0x4ae6a495 @agent=nil, @metric_store=#<LogStash::Instrument::MetricStore:0x43624d7d @store=#<Concurrent::Map:0x000000000635d4 entries=2 default_proc=nil>, @structured_lookup_mutex=#<Mutex:0xfa7a6b3>, @fast_lookup=#<Concurrent::Map:0x000000000635d8 entries=49 default_proc=nil>>>>, @namespace_name=[:stats, :pipelines, :\".monitoring-logstash\", :plugins, :outputs, :\"cca672ed2c05d7428765d23aed0d0a9692798c3b-2\"]>, @metric=#<LogStash::Instrument::NamespacedNullMetric:0x72153dee @metric=#<LogStash::Instrument::NullMetric:0x7f8fa04d @collector=#<LogStash::Instrument::Collector:0x4ae6a495 @agent=nil, @metric_store=#<LogStash::Instrument::MetricStore:0x43624d7d @store=#<Concurrent::Map:0x000000000635d4 entries=2 default_proc=nil>, @structured_lookup_mutex=#<Mutex:0xfa7a6b3>, @fast_lookup=#<Concurrent::Map:0x000000000635d8 entries=49 default_proc=nil>>>>, @namespace_name=[:stats, :pipelines, :\".monitoring-logstash\", :plugins, :outputs]>, @logger=#<LogStash::Logging::Logger:0x11ed3790 @logger=#<Java::OrgApacheLoggingLog4jCore::Logger:0x4f186a22>>, @strategy=#<LogStash::OutputDelegatorStrategies::Shared:0x38d54d @output=<LogStash::Outputs::ElasticSearch hosts=>[xxxxxxxx:9200], bulk_path=>\"/_xpack/monitoring/_bulk?system_id=logstash&system_api_version=2&interval=1s\", manage_template=>false, document_id=>\"cac81195-0b92-4249-a6d7-a1278e30f961\", document_type=>\"logstash\", index=>\"_data\", sniffing=>false, user=>\"xxxxxxx\", password=><password>, ssl=>true, id=>\"cca672ed2c05d7428765d23aed0d0a9692798c3b-2\", enable_metric=>true, codec=><LogStash::Codecs::Plain id=>\"plain_36b538fb-f402-498f-8ee6-9f299193c01f\", enable_metric=>true, charset=>\"UTF-8\">, workers=>1, template_name=>\"logstash\", template_overwrite=>false, idle_flush_time=>1, doc_as_upsert=>false, script_type=>\"inline\", script_lang=>\"painless\", script_var_name=>\"event\", scripted_upsert=>false, retry_initial_interval=>2, retry_max_interval=>64, retry_on_conflict=>1, action=>\"index\", ssl_certificate_verification=>true, sniffing_delay=>5, timeout=>60, pool_max=>1000, pool_max_per_route=>100, resurrect_delay=>5, validate_after_inactivity=>10000, http_compression=>false>>, @id=\"cca672ed2c05d7428765d23aed0d0a9692798c3b-2\", @metric_events=#<LogStash::Instrument::NamespacedNullMetric:0x4fc1cc11 @metric=#<LogStash::Instrument::NullMetric:0x7f8fa04d @collector=#<LogStash::Instrument::Collector:0x4ae6a495 @agent=nil, @metric_store=#<LogStash::Instrument::MetricStore:0x43624d7d @store=#<Concurrent::Map:0x000000000635d4 entries=2 default_proc=nil>, @structured_lookup_mutex=#<Mutex:0xfa7a6b3>, @fast_lookup=#<Concurrent::Map:0x000000000635d8 entries=49 default_proc=nil>>>>, @namespace_name=[:stats, :pipelines, :\".monitoring-logstash\", :plugins, :outputs, :\"cca672ed2c05d7428765d23aed0d0a9692798c3b-2\", :events]>, @output_class=LogStash::Outputs::ElasticSearch>", :error=>"wrong number of arguments calling `initialize` (0 for 1)"}
Class BasicCredentialsProvider defined @ https://github.com/samcday/logstash-output-kinesis/blob/master/lib/logstash/outputs/kinesis.rb#L212 overwrites a class of the same name @ https://github.com/cheald/manticore/blob/master/lib/manticore/client.rb#L551
PR is tested and confirmed working