logstash-output-lumberjack 3.0.1 → 3.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c334e797a43aedf662f8f1f9888f85a6a6919fe8
4
- data.tar.gz: 262c5f445ffcaa495d71e25c4a2ef9b1c305cbfe
3
+ metadata.gz: 1e167dc9da1b76d27443b93f11b32e2c8aad2535
4
+ data.tar.gz: b1cfff9fa7d5258985c86a6bd82550e9da27eda0
5
5
  SHA512:
6
- metadata.gz: c4f5fd5e8088f7a4bf94b05bf74b7c83050b8c84e0ead99761dcc7d52f4b67c1eca36eeccc8d1cfbec2256fa6923e43747b4269f57fbe82e30f9a745a821ebf9
7
- data.tar.gz: de3bcf7d0e9f3c0de6d26874e1df89899d6d13b028648938cde4f57f84063ebcf8648732a136bec9db33aa557fb69ba761a60bf9708d40b3bd0aede59bb8b15b
6
+ metadata.gz: fd1d00974b4f3a935bcf79c61b2f71766fea06fded8adbe0218a1f5ffcb5e1a5ee877b14d2c3ef2168cc9a04d46231d6de273e32b3e11fc7512c21c8568d09f6
7
+ data.tar.gz: e8c38db48fca8c114cc66c56bf7096c3e175db888af7f7ddede374ec6bbef2f530cecffc3e040867b1e4cc83d68625de9862a5da68509bb03e0e60c83101443d
data/CHANGELOG.md CHANGED
@@ -1,17 +1,28 @@
1
+ ## 3.1.1
2
+ - Relax constraint on logstash-core-plugin-api to >= 1.60 <= 2.99
3
+
4
+ ## 3.1.0
5
+ - breaking,config: Remove deprecated config `window_size`. Please use `flush_size`
6
+
1
7
  ## 3.0.1
2
- - Republish all the gems under jruby.
8
+ - Republish all the gems under jruby.
9
+
3
10
  ## 3.0.0
4
- - Update the plugin to the version 2.0 of the plugin api, this change is required for Logstash 5.0 compatibility. See https://github.com/elastic/logstash/issues/5141
5
- # 2.0.6
6
- - Depend on logstash-core-plugin-api instead of logstash-core, removing the need to mass update plugins on major releases of logstash
7
- # 2.0.5
8
- - New dependency requirements for logstash-core for the 5.0 release
11
+ - Update the plugin to the version 2.0 of the plugin api, this change is required for Logstash 5.0 compatibility. See https://github.com/elastic/logstash/issues/5141
12
+
13
+ ## 2.0.6
14
+ - Depend on logstash-core-plugin-api instead of logstash-core, removing the need to mass update plugins on major releases of logstash
15
+
16
+ ## 2.0.5
17
+ - New dependency requirements for logstash-core for the 5.0 release
18
+
9
19
  ## 2.0.4
10
20
  - Update `ruby-lumberjack` dependency to 0.0.26
21
+
11
22
  ## 2.0.0
12
23
  - Plugins were updated to follow the new shutdown semantic, this mainly allows Logstash to instruct input plugins to terminate gracefully,
13
24
  instead of using Thread.raise on the plugins' threads. Ref: https://github.com/elastic/logstash/pull/3895
14
25
  - Dependency on logstash-core update to 2.0
15
26
 
16
27
  ## 1.0.1
17
- - Force dependencies of `ruby-lumberjack` to **0.0.23**, This version make sure the Client verify the server certificate.
28
+ - Force dependencies of `ruby-lumberjack` to **0.0.23**, This version make sure the Client verify the server certificate.
@@ -18,9 +18,6 @@ class LogStash::Outputs::Lumberjack < LogStash::Outputs::Base
18
18
  # ssl certificate to use
19
19
  config :ssl_certificate, :validate => :path, :required => true
20
20
 
21
- # window size
22
- config :window_size, :validate => :number, :deprecated => "Use `flush_size`", :require => false
23
-
24
21
  # To make efficient calls to the lumberjack output we are buffering events locally.
25
22
  # if the number of events exceed the number the declared `flush_size` we will
26
23
  # send them to the logstash server.
@@ -44,7 +41,7 @@ class LogStash::Outputs::Lumberjack < LogStash::Outputs::Base
44
41
  require 'lumberjack/client'
45
42
 
46
43
  buffer_initialize(
47
- :max_items => max_items,
44
+ :max_items => @flush_size,
48
45
  :max_interval => @idle_flush_time,
49
46
  :logger => @logger
50
47
  )
@@ -79,19 +76,15 @@ class LogStash::Outputs::Lumberjack < LogStash::Outputs::Base
79
76
  end
80
77
 
81
78
  private
82
- def max_items
83
- @window_size || @flush_size
84
- end
85
-
86
79
  def connect
87
80
  require 'resolv'
88
81
  @logger.info("Connecting to lumberjack server.", :addresses => @hosts, :port => @port,
89
- :ssl_certificate => @ssl_certificate, :window_size => @window_size)
82
+ :ssl_certificate => @ssl_certificate, :flush_size => @flush_size)
90
83
  begin
91
84
  ips = []
92
85
  @hosts.each { |host| ips += Resolv.getaddresses host }
93
86
  @client = Lumberjack::Client.new(:addresses => ips.uniq, :port => @port,
94
- :ssl_certificate => @ssl_certificate, :window_size => @window_size)
87
+ :ssl_certificate => @ssl_certificate, :flush_size => @flush_size)
95
88
  rescue Exception => e
96
89
  @logger.error("All hosts unavailable, sleeping", :hosts => ips.uniq, :e => e,
97
90
  :backtrace => e.backtrace)
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'logstash-output-lumberjack'
4
- s.version = '3.0.1'
4
+ s.version = '3.1.1'
5
5
  s.licenses = ['Apache License (2.0)']
6
6
  s.summary = "Send events using the lumberjack protocol"
7
7
  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"
@@ -21,7 +21,7 @@ Gem::Specification.new do |s|
21
21
 
22
22
 
23
23
  # Gem dependencies
24
- s.add_runtime_dependency "logstash-core-plugin-api", "~> 2.0"
24
+ s.add_runtime_dependency "logstash-core-plugin-api", ">= 1.60", "<= 2.99"
25
25
 
26
26
  s.add_runtime_dependency 'jls-lumberjack', ['>=0.0.26']
27
27
  s.add_runtime_dependency "stud"
metadata CHANGED
@@ -1,29 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-output-lumberjack
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1
4
+ version: 3.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-09 00:00:00.000000000 Z
11
+ date: 2016-07-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
15
15
  requirements:
16
- - - "~>"
16
+ - - ">="
17
+ - !ruby/object:Gem::Version
18
+ version: '1.60'
19
+ - - "<="
17
20
  - !ruby/object:Gem::Version
18
- version: '2.0'
21
+ version: '2.99'
19
22
  name: logstash-core-plugin-api
20
23
  prerelease: false
21
24
  type: :runtime
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '1.60'
30
+ - - "<="
25
31
  - !ruby/object:Gem::Version
26
- version: '2.0'
32
+ version: '2.99'
27
33
  - !ruby/object:Gem::Dependency
28
34
  requirement: !ruby/object:Gem::Requirement
29
35
  requirements:
@@ -131,7 +137,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
131
137
  version: '0'
132
138
  requirements: []
133
139
  rubyforge_project:
134
- rubygems_version: 2.4.8
140
+ rubygems_version: 2.6.3
135
141
  signing_key:
136
142
  specification_version: 4
137
143
  summary: Send events using the lumberjack protocol