logstash-input-http_poller 4.0.1 → 4.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/logstash/inputs/http_poller.rb +10 -4
- data/logstash-input-http_poller.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 63daf40179c719d0fd7c376a2d8c1fa279697552
|
4
|
+
data.tar.gz: 05c9c18886b2f3114247c96b37eb328a69a1b837
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4f73a27e95a7c1f59a8a859c26ecc055e969f3b0cdb354491d979612a2976ad48b2d97373c90cd0114fc5eede18b4159b601eb29467d14980b1dc1ac58c9348d
|
7
|
+
data.tar.gz: 0cc5aa36f92953b3857a326188c2a17d9390cdad4b2a642f964ef2a2e13691bb4f3240a942292fa9dda7d608cfd61999d353df3bc1999a75dc6e6fb518e37919
|
data/CHANGELOG.md
CHANGED
@@ -42,8 +42,7 @@ class LogStash::Inputs::HTTP_Poller < LogStash::Inputs::Base
|
|
42
42
|
def register
|
43
43
|
@host = Socket.gethostname.force_encoding(Encoding::UTF_8)
|
44
44
|
|
45
|
-
@logger.info("Registering http_poller Input", :type => @type,
|
46
|
-
:urls => @urls, :schedule => @schedule, :timeout => @timeout)
|
45
|
+
@logger.info("Registering http_poller Input", :type => @type, :schedule => @schedule, :timeout => @timeout)
|
47
46
|
|
48
47
|
setup_requests!
|
49
48
|
end
|
@@ -212,12 +211,19 @@ class LogStash::Inputs::HTTP_Poller < LogStash::Inputs::Base
|
|
212
211
|
queue << event
|
213
212
|
rescue StandardError, java.lang.Exception => e
|
214
213
|
@logger.error? && @logger.error("Cannot read URL or send the error as an event!",
|
214
|
+
:exception => e,
|
215
|
+
:exception_message => e.message,
|
216
|
+
:exception_backtrace => e.backtrace,
|
217
|
+
:name => name)
|
218
|
+
|
219
|
+
# If we are running in debug mode we can display more information about the
|
220
|
+
# specific request which could give more details about the connection.
|
221
|
+
@logger.debug? && @logger.debug("Cannot read URL or send the error as an event!",
|
215
222
|
:exception => e,
|
216
223
|
:exception_message => e.message,
|
217
224
|
:exception_backtrace => e.backtrace,
|
218
225
|
:name => name,
|
219
|
-
:url => request
|
220
|
-
)
|
226
|
+
:url => request)
|
221
227
|
end
|
222
228
|
|
223
229
|
private
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'logstash-input-http_poller'
|
3
|
-
s.version = '4.0.
|
3
|
+
s.version = '4.0.2'
|
4
4
|
s.licenses = ['Apache License (2.0)']
|
5
5
|
s.summary = "Poll HTTP endpoints with Logstash."
|
6
6
|
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"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-input-http_poller
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.
|
4
|
+
version: 4.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Elastic
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-
|
12
|
+
date: 2017-09-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|