logstash-input-redis_cluster 1.1.0 → 1.1.1
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 +4 -4
- data/lib/logstash/inputs/redis_cluster.rb +7 -3
- data/logstash-input-redis_cluster.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4f1fc9b7fbc202a4300182de56568cbab00801cbd3d28b36c9a27e59a8d8dca1
|
4
|
+
data.tar.gz: 36ca7c16205aa992f0d7b5d7b86327562f0f24325ff29793b1bd2f517d6931e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d72f0d836d520fc2bba51a758430ffe654317721492204b3a53d792c1e32647e1d337c56e2294db512e344ca774aa318de6702fac8c5b9bb4ba2e9740edac090
|
7
|
+
data.tar.gz: 77b2a53d244f07d3157afa4706040f14fa185b731fdc2e92444eb07fa2c2d8213a88ac3ba22a7f886ebce6e4f7cf2ff3d6577f5ec57662c316686019ddc01c51
|
@@ -45,6 +45,7 @@ module LogStash module Inputs class RedisCluster < LogStash::Inputs::Threadable
|
|
45
45
|
# Initial connection timeout in seconds.
|
46
46
|
config :timeout, :validate => :number, :default => 5
|
47
47
|
|
48
|
+
config :username, :validate => :string, :default => "default"
|
48
49
|
# Password to authenticate with. There is no authentication by default.
|
49
50
|
config :password, :validate => :password
|
50
51
|
|
@@ -104,12 +105,15 @@ module LogStash module Inputs class RedisCluster < LogStash::Inputs::Threadable
|
|
104
105
|
private
|
105
106
|
|
106
107
|
def find_redis_node(key)
|
107
|
-
username = 'foo'
|
108
|
-
password = 'bitnami'
|
109
108
|
fixed_hostname = @fixed_hostname
|
110
109
|
@logger.info("Initializing plugin")
|
111
110
|
begin
|
112
|
-
cluster = RedisClient.cluster(
|
111
|
+
cluster = RedisClient.cluster(
|
112
|
+
nodes: @nodes,
|
113
|
+
fixed_hostname: fixed_hostname,
|
114
|
+
username: @username,
|
115
|
+
password: @password
|
116
|
+
).new_client
|
113
117
|
|
114
118
|
@logger.info("Cluster initialized, Pinging cluster... <= " + cluster.call('PING'))
|
115
119
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
|
3
3
|
s.name = 'logstash-input-redis_cluster'
|
4
|
-
s.version = '1.1.
|
4
|
+
s.version = '1.1.1'
|
5
5
|
s.licenses = ['Apache License (2.0)']
|
6
6
|
s.summary = "Reads 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"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-input-redis_cluster
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.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: 2024-12-
|
11
|
+
date: 2024-12-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|