From 38ed76b93f4d960fcca612530ce53e2d1ac72c84 Mon Sep 17 00:00:00 2001 From: bhois Date: Tue, 18 Jul 2017 15:52:06 +0200 Subject: [PATCH 1/2] Decorate event in case of request failure --- lib/logstash/inputs/http_poller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/logstash/inputs/http_poller.rb b/lib/logstash/inputs/http_poller.rb index 6484413..a232005 100644 --- a/lib/logstash/inputs/http_poller.rb +++ b/lib/logstash/inputs/http_poller.rb @@ -221,6 +221,7 @@ def handle_decoded_event(queue, name, request, response, event, execution_time) def handle_failure(queue, name, request, exception, execution_time) event = LogStash::Event.new apply_metadata(event, name, request) + decorate(event) event.tag("_http_request_failure") From 3e851f18e44781546921256f88ad7fb7febe300e Mon Sep 17 00:00:00 2001 From: bhois Date: Thu, 13 Sep 2018 16:45:16 +0200 Subject: [PATCH 2/2] Make LS 6.x ready --- logstash-input-http_poller.gemspec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/logstash-input-http_poller.gemspec b/logstash-input-http_poller.gemspec index 7be6b3d..a75b7bc 100644 --- a/logstash-input-http_poller.gemspec +++ b/logstash-input-http_poller.gemspec @@ -1,6 +1,6 @@ Gem::Specification.new do |s| s.name = 'logstash-input-http_poller' - s.version = '3.3.1' + s.version = '3.3.1.patched.2' s.licenses = ['Apache License (2.0)'] s.summary = "Poll HTTP endpoints with Logstash." s.description = "This gem is a Logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/logstash-plugin install gemname. This gem is not a stand-alone program" @@ -20,7 +20,7 @@ Gem::Specification.new do |s| # Gem dependencies s.add_runtime_dependency "logstash-core-plugin-api", ">= 1.60", "<= 2.99" s.add_runtime_dependency 'logstash-codec-plain' - s.add_runtime_dependency 'logstash-mixin-http_client', ">= 5.0.0", "< 6.0.0" + s.add_runtime_dependency 'logstash-mixin-http_client', ">= 6.0.0", "< 7.0.0" s.add_runtime_dependency 'stud', "~> 0.0.22" s.add_runtime_dependency 'rufus-scheduler', "~>3.0.9"