madhawk57-log 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/fluent-plugin-kafka.gemspec +1 -1
- data/lib/fluent/plugin/kafka_plugin_util.rb +1 -3
- data/lib/fluent/plugin/out_kafka2.rb +1 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8cd9b60a60ba7fbb87c62070412d279201b52b211f8a3870dffaee347ee7f0b4
|
4
|
+
data.tar.gz: d4564ac42c84e4a41888ac175624942c2e7b8477ee59e6633b0445ecd35e94cd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0745d1e22a1c418ef0912ff6224efab0f7b529e01ee9e07a2eacbed2aedf94057d9239e5c05d0e4f4197fb1572659249816fc006af768be118ad7080c10d35b1
|
7
|
+
data.tar.gz: ae5d3514c9ab871d1456731efc696b33a15ccf7092776280db685a3e5029990e4b22c9ba6bc522e0feae8e260cefcb7ec0d1bcedde959b73724654aa217cea58
|
data/fluent-plugin-kafka.gemspec
CHANGED
@@ -11,7 +11,7 @@ Gem::Specification.new do |gem|
|
|
11
11
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
12
12
|
gem.name = "madhawk57-log"
|
13
13
|
gem.require_paths = ["lib"]
|
14
|
-
gem.version = '0.1.
|
14
|
+
gem.version = '0.1.6'
|
15
15
|
gem.required_ruby_version = ">= 2.1.0"
|
16
16
|
|
17
17
|
gem.add_dependency "fluentd", [">= 0.10.58", "< 2"]
|
@@ -79,11 +79,10 @@ module Fluent
|
|
79
79
|
end
|
80
80
|
|
81
81
|
def fetch
|
82
|
-
|
82
|
+
puts "using following to fetch from GSM"
|
83
83
|
puts "project id: #{@projectId}"
|
84
84
|
puts "secret name: #{@secretName}"
|
85
85
|
puts "version: #{@version}"
|
86
|
-
=end
|
87
86
|
|
88
87
|
client = Google::Cloud::SecretManager.secret_manager_service
|
89
88
|
|
@@ -102,7 +101,6 @@ module Fluent
|
|
102
101
|
|
103
102
|
@username = s[0]
|
104
103
|
@password = s[1]
|
105
|
-
@scram_mechanism = "PLAIN"
|
106
104
|
|
107
105
|
s
|
108
106
|
end
|
@@ -27,7 +27,7 @@ Set brokers directly:
|
|
27
27
|
config_param :use_default_for_unknown_topic, :bool, :default => false, :desc => "If true, default_topic is used when topic not found"
|
28
28
|
config_param :client_id, :string, :default => 'fluentd'
|
29
29
|
config_param :idempotent, :bool, :default => false, :desc => 'Enable idempotent producer'
|
30
|
-
config_param :sasl_over_ssl, :bool, :default =>
|
30
|
+
config_param :sasl_over_ssl, :bool, :default => true,
|
31
31
|
:desc => <<-DESC
|
32
32
|
Set to false to prevent SSL strict mode when using SASL authentication
|
33
33
|
DESC
|
@@ -96,9 +96,6 @@ requires activesupport gem - records will be generated under fluent_kafka_stats.
|
|
96
96
|
logger = @get_kafka_client_log ? log : nil
|
97
97
|
if @secretName != nil && @projectId != nil
|
98
98
|
fetch
|
99
|
-
puts "project id: #{@username}"
|
100
|
-
puts "secret name: #{@password}"
|
101
|
-
puts "version: #{@scram_mechanism}"
|
102
99
|
end
|
103
100
|
if @scram_mechanism != nil && @username != nil && @password != nil
|
104
101
|
@kafka = Kafka.new(seed_brokers: @seed_brokers, client_id: @client_id, logger: logger, connect_timeout: @connect_timeout, socket_timeout: @socket_timeout, ssl_ca_cert: read_ssl_file(@ssl_ca_cert),
|