logstash-output-redis-increment 1.1.0 → 1.3.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b72d26b3ab56c8410410ed4c29b1ebd30fc8e7030b2829877d0446e8b94ba976
|
4
|
+
data.tar.gz: b495a6bc7c7230e085d6fb14760e97db90d579ca3d94d8aa53abc5a76426a4a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 70825a170fc233a0f0e0c8e46250f33dc1b3e05a335c3d010377fcfccca3df98513221d813e6abfe11b9c60134012507c295c716cf1e39ba8825c34d2da7a979
|
7
|
+
data.tar.gz: 32fdc0877162b2f2cf98641fac3582e5db0f08c2ecf58bca709aa162fb796e9ffd987f06b46d56f84beb28eddcc03b164f588eecb9ade4e672a43a7205d7c2d2
|
@@ -31,7 +31,7 @@ class LogStash::Outputs::Redis < LogStash::Outputs::Base
|
|
31
31
|
|
32
32
|
public
|
33
33
|
def register
|
34
|
-
require "redis
|
34
|
+
require "redis"
|
35
35
|
@redis = nil
|
36
36
|
@codec.on_event(&method(:send_to_redis))
|
37
37
|
end # def register
|
@@ -54,7 +54,7 @@ class LogStash::Outputs::Redis < LogStash::Outputs::Base
|
|
54
54
|
private
|
55
55
|
def connect
|
56
56
|
if @cluster
|
57
|
-
|
57
|
+
Redis.new(cluster:@host)
|
58
58
|
else
|
59
59
|
@current_host, @current_port = @host.split(':')
|
60
60
|
params = {
|
@@ -69,7 +69,8 @@ class LogStash::Outputs::Redis < LogStash::Outputs::Base
|
|
69
69
|
params[:password] = @password.value
|
70
70
|
end
|
71
71
|
|
72
|
-
|
72
|
+
Redis.new(params)
|
73
|
+
end
|
73
74
|
end #def connect
|
74
75
|
|
75
76
|
# A string used to identify a Redis instance in log messages
|
@@ -90,5 +91,5 @@ class LogStash::Outputs::Redis < LogStash::Outputs::Base
|
|
90
91
|
@redis = nil
|
91
92
|
retry
|
92
93
|
end
|
93
|
-
|
94
|
+
end #def send_to_redis
|
94
95
|
end # class LogStash::Outputs::Redis
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'logstash-output-redis-increment'
|
3
|
-
s.version = '1.
|
3
|
+
s.version = '1.3.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.'
|