logstash-input-redis 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: 12fed6324ad58b3cad96c412c56a923b8cb80444
4
- data.tar.gz: 052be2d75e32fd62c26b3be693f7fde62bb288b5
3
+ metadata.gz: ad182690a7770eae7aea96b3f317cebce6c2e6c7
4
+ data.tar.gz: 228711379e887a580c9a999e0bb305fbc30d31ad
5
5
  SHA512:
6
- metadata.gz: 1b67e8ebbdad826f1f6f400b1b8878b8ec985dce30f12b73b2b5303047f33fb2ae474ce6ac839ddeb8d757dbd00a4ca82259a5a1a9d4b1b9b760394e124a7745
7
- data.tar.gz: dfdd6153932720c4311c2fafc4a44f6fd1f00ce470d46c61a43f2825a3451d89415c2b7c0a3d0600d0e9846a32a767b7a89c1d3f256e4a63a3d6ee9faeaa317f
6
+ metadata.gz: b5d962d59198462557c536881b0b977dad979ba0a666cf1d2d5ee1a499e3812800c0be33bf94eaf35035f6f6fbc8abf253a41068459018cb20e743a09d020c07
7
+ data.tar.gz: 6cbfbc1cbefd104c7574ef9a15e481f81a34539312f069c57d643f9b70a453a44fc2ae8221c53e9b43c522f05202a1a55536f89dcf8860a4b9bce5c662b7ae18
@@ -1,13 +1,25 @@
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 `queue`. Please use `key` and `data_type`.
6
+ - breaking,config: Remove deprecated config `name`.
7
+
1
8
  ## 3.0.1
2
- - Republish all the gems under jruby.
9
+ - Republish all the gems under jruby.
10
+
3
11
  ## 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
- - make integration tests more reliable because of occasional travis failures
7
- # 2.0.5
8
- - Depend on logstash-core-plugin-api instead of logstash-core, removing the need to mass update plugins on major releases of logstash
9
- # 2.0.4
10
- - New dependency requirements for logstash-core for the 5.0 release
12
+ - 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
13
+
14
+ ## 2.0.6
15
+ - make integration tests more reliable because of occasional travis failures
16
+
17
+ ## 2.0.5
18
+ - Depend on logstash-core-plugin-api instead of logstash-core, removing the need to mass update plugins on major releases of logstash
19
+
20
+ ## 2.0.4
21
+ - New dependency requirements for logstash-core for the 5.0 release
22
+
11
23
  ## 2.0.3
12
24
  - Changed default batch size to 125. Improve batch handling code. Add travis ci build with redis integration.
13
25
 
@@ -19,7 +31,7 @@
19
31
  ## 1.0.3
20
32
  - Fix typo in module name in test (Causing CI build failures)
21
33
 
22
- ## 1.0.2
34
+ ## 1.0.2
23
35
  - Fix typo in module name (Causing the module to not be loaded)
24
36
 
25
37
  ## 1.0.1
@@ -23,10 +23,6 @@ module LogStash module Inputs class Redis < LogStash::Inputs::Threadable
23
23
 
24
24
  default :codec, "json"
25
25
 
26
- # The `name` configuration is used for logging in case there are multiple instances.
27
- # This feature has no real function and will be removed in future versions.
28
- config :name, :validate => :string, :default => "default", :deprecated => true
29
-
30
26
  # The hostname of your Redis server.
31
27
  config :host, :validate => :string, :default => "127.0.0.1"
32
28
 
@@ -42,16 +38,13 @@ module LogStash module Inputs class Redis < LogStash::Inputs::Threadable
42
38
  # Password to authenticate with. There is no authentication by default.
43
39
  config :password, :validate => :password
44
40
 
45
- # The name of the Redis queue (we'll use BLPOP against this).
46
- config :queue, :validate => :string, :deprecated => true
47
-
48
41
  # The name of a Redis list or channel.
49
- config :key, :validate => :string, :required => false
42
+ config :key, :validate => :string, :required => true
50
43
 
51
44
  # Specify either list or channel. If `redis\_type` is `list`, then we will BLPOP the
52
45
  # key. If `redis\_type` is `channel`, then we will SUBSCRIBE to the key.
53
46
  # If `redis\_type` is `pattern_channel`, then we will PSUBSCRIBE to the key.
54
- config :data_type, :validate => [ "list", "channel", "pattern_channel" ], :required => false
47
+ config :data_type, :validate => [ "list", "channel", "pattern_channel" ], :required => true
55
48
 
56
49
  # The number of events to return from Redis using EVAL.
57
50
  config :batch_count, :validate => :number, :default => 125
@@ -77,24 +70,6 @@ module LogStash module Inputs class Redis < LogStash::Inputs::Threadable
77
70
  def register
78
71
  @redis_url = "redis://#{@password}@#{@host}:#{@port}/#{@db}"
79
72
 
80
- # TODO remove after setting key and data_type to true
81
- if @queue
82
- if @key || @data_type
83
- raise RuntimeError.new(
84
- "Cannot specify queue parameter and key or data_type"
85
- )
86
- end
87
- @key = @queue
88
- @data_type = 'list'
89
- end
90
-
91
- if !@key || !@data_type
92
- raise RuntimeError.new(
93
- "Must define queue, or key and data_type parameters"
94
- )
95
- end
96
- # end TODO
97
-
98
73
  @redis_builder ||= method(:internal_redis_builder)
99
74
 
100
75
  # just switch on data_type once
@@ -111,8 +86,7 @@ module LogStash module Inputs class Redis < LogStash::Inputs::Threadable
111
86
 
112
87
  @list_method = batched? ? method(:list_batch_listener) : method(:list_single_listener)
113
88
 
114
- # TODO(sissel, boertje): set @identity directly when @name config option is removed.
115
- @identity = @name != 'default' ? @name : "#{@redis_url} #{@data_type}:#{@key}"
89
+ @identity = "#{@redis_url} #{@data_type}:#{@key}"
116
90
  @logger.info("Registering Redis", :identity => @identity)
117
91
  end # def register
118
92
 
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'logstash-input-redis'
4
- s.version = '3.0.1'
4
+ s.version = '3.1.1'
5
5
  s.licenses = ['Apache License (2.0)']
6
6
  s.summary = "This input will read events from a Redis instance"
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"
@@ -20,7 +20,7 @@ Gem::Specification.new do |s|
20
20
  s.metadata = { "logstash_plugin" => "true", "logstash_group" => "input" }
21
21
 
22
22
  # Gem dependencies
23
- s.add_runtime_dependency "logstash-core-plugin-api", "~> 2.0"
23
+ s.add_runtime_dependency "logstash-core-plugin-api", ">= 1.60", "<= 2.99"
24
24
 
25
25
  s.add_runtime_dependency 'logstash-codec-json'
26
26
  s.add_runtime_dependency 'redis'
metadata CHANGED
@@ -1,29 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-input-redis
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:
@@ -103,7 +109,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
103
109
  version: '0'
104
110
  requirements: []
105
111
  rubyforge_project:
106
- rubygems_version: 2.4.8
112
+ rubygems_version: 2.6.3
107
113
  signing_key:
108
114
  specification_version: 4
109
115
  summary: This input will read events from a Redis instance