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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 86dd3ac8224fc5690e7602439e3e2a9be3b0a015
4
- data.tar.gz: 84cf5ee5cd3688b38ca2bdf06c0aed91fb86a17c
3
+ metadata.gz: 63daf40179c719d0fd7c376a2d8c1fa279697552
4
+ data.tar.gz: 05c9c18886b2f3114247c96b37eb328a69a1b837
5
5
  SHA512:
6
- metadata.gz: 1b6cd3ccef448c8fdafab9dc19f1074175ed9c58c3ae92a2885bfc256ac33fb4d502695e9b7e1281d37db3e0f2792d112ae363375b4fa583b88a42ced18785e5
7
- data.tar.gz: b5393d0dfb070b25bd51539191a31edfc5d3c981dc8dd580c61ad12b66feb5c7f241f1ca19b4cabdc612a67b590d6f5062c2d7f1accc911275de46a7c54944d0
6
+ metadata.gz: 4f73a27e95a7c1f59a8a859c26ecc055e969f3b0cdb354491d979612a2976ad48b2d97373c90cd0114fc5eede18b4159b601eb29467d14980b1dc1ac58c9348d
7
+ data.tar.gz: 0cc5aa36f92953b3857a326188c2a17d9390cdad4b2a642f964ef2a2e13691bb4f3240a942292fa9dda7d608cfd61999d353df3bc1999a75dc6e6fb518e37919
@@ -1,3 +1,6 @@
1
+ ## 4.0.2
2
+ - Don't bleed URLs credentials on startup and on exception #82
3
+
1
4
  ## 4.0.1
2
5
  - Fix some documentation issues
3
6
 
@@ -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.1'
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.1
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-08-15 00:00:00.000000000 Z
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