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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 588507b8cf35bb5a4775054087e8e5246124e4e01b32c9124fbf488d4e9e0480
4
- data.tar.gz: d9c848e3b464b8c7fe52a9bace0e1807f88b50435b593bdacb1326f4ead8d490
3
+ metadata.gz: 4f1fc9b7fbc202a4300182de56568cbab00801cbd3d28b36c9a27e59a8d8dca1
4
+ data.tar.gz: 36ca7c16205aa992f0d7b5d7b86327562f0f24325ff29793b1bd2f517d6931e9
5
5
  SHA512:
6
- metadata.gz: 20996696cdf79bd3db56d2f7372ce0d19a9febc304ead287d5f4ca86dc18b6eb73b289c345bfcb68873b8eb9bbfe60780441d818408321aef5ec982e042bb7f5
7
- data.tar.gz: ec9d22a3b4493cce28101450cf780fb6f98e8fcfd57893115bf453b2a5e60a5d2ca5f0423caa73039597f181e85402f0d0f85bf087fca3d69295166904666428
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(nodes: @nodes, fixed_hostname: fixed_hostname).new_client
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.0'
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.0
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-18 00:00:00.000000000 Z
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