logstash-output-redis-increment 0.5.0 → 0.6.0

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
  SHA256:
3
- metadata.gz: 7e2735b41ece2a0179056d8641c59efd44a41595ad676e593b294316632477bf
4
- data.tar.gz: e3e63dc6a6b81283b66d057afd28cc438965cb90426e2240ca230c1089f48eb1
3
+ metadata.gz: 786031e2c45be1b11123b2eb38b042c63b9bd0a2762c48e7a19eff60c33e4ad3
4
+ data.tar.gz: 793c99fc08df2ba803c701e5754091544d243ffcfd7c322bb15af1cea00fa348
5
5
  SHA512:
6
- metadata.gz: 0a53c4e1ca1bc9cc5090ba33a26a4629416ec14da5b87658b4ed13cfea4d11b778440851240836eb826868657bec2a6e1a5a74eb2e64a6e235b5730826192d7a
7
- data.tar.gz: c8a3a4edfe204bee81d350510ad9282c15990d3e4091752085622b8fdd74d13cf531941c699099f7536a1c1b8a201e8fd1fdee615c0c364876efc55fa1dbf30b
6
+ metadata.gz: fd0225dbe036a3eae00167318c1e3d04f2827d3522c10ae78714cdfcca5562e3935305bffbed9fd66dbb4a29e07e90c94a97e5bcd0fbdabf339c8496b907b5ee
7
+ data.tar.gz: ff32a7b5054d14911552c4a6986b2c21e7df673e8488d3e059eb3d9e7156dc797d1081e8190d5cf8f2bb4e27b6467b425856c8823b4b911058820061afeaf6f4
@@ -28,7 +28,7 @@ class LogStash::Outputs::Redis < LogStash::Outputs::Base
28
28
 
29
29
  public
30
30
  def register
31
- require 'redis'
31
+ require "redis-clustering"
32
32
  @redis = nil
33
33
  @codec.on_event(&method(:send_to_redis))
34
34
  end # def register
@@ -63,7 +63,10 @@ class LogStash::Outputs::Redis < LogStash::Outputs::Base
63
63
  params[:password] = @password.value
64
64
  end
65
65
 
66
- Redis.new(params)
66
+ node_list = Array.new
67
+ node_list << @host
68
+
69
+ Redis::Cluster.new(nodes: node_list)
67
70
  end #def connect
68
71
 
69
72
  # A string used to identify a Redis instance in log messages
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-output-redis-increment'
3
- s.version = '0.5.0'
3
+ s.version = '0.6.0'
4
4
  s.licenses = ['Apache-2.0']
5
5
  s.summary = 'Logstash Output Plugin for RedisIncrement'
6
6
  s.description = 'Logstash Redis Output plugin for incrementing a key from each event.'
@@ -21,5 +21,6 @@ Gem::Specification.new do |s|
21
21
  s.add_runtime_dependency "logstash-core-plugin-api", "~> 2.0"
22
22
  s.add_runtime_dependency 'redis', '~> 4'
23
23
  s.add_runtime_dependency "logstash-codec-plain"
24
+ s.add_runtime_dependency "redis-clustering"
24
25
  s.add_development_dependency "logstash-devutils"
25
26
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-output-redis-increment
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Evan Vinciguerra
@@ -52,6 +52,20 @@ dependencies:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ requirement: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ version: '0'
61
+ name: redis-clustering
62
+ prerelease: false
63
+ type: :runtime
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
55
69
  - !ruby/object:Gem::Dependency
56
70
  requirement: !ruby/object:Gem::Requirement
57
71
  requirements: