fluent-plugin-coralogix 1.0.7 → 1.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fluent/plugin/out_coralogix.rb +6 -8
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3dae7df93ce63ae60ba2beffe047731d826b2e016982a32c409bad5fdd50d57e
|
4
|
+
data.tar.gz: 3044ea4a5c4bd4062d9fa8bb5ba50a2cf41defbefab2f2ddfdd65b124fc33b15
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1d1c799e6636b76cf379f6cccb6eca910de452ed62c0853540cc270112536f1d74080601d963f6f6e2bc43aad22b70a2d45ac39c5c74e3666ad221dff58faf71
|
7
|
+
data.tar.gz: f04beb89599c9de420bff3d0d025c8667b57cc6dca65be6821c7d864c0ecc8561d62b7292f0457d0de3dcdc2af4d305dc5f61583690fa96b4b45860e7c8e8006
|
@@ -13,7 +13,6 @@ module Fluent
|
|
13
13
|
# First, register the plugin. NAME is the name of this plugin
|
14
14
|
# and identifies the plugin in the configuration file.
|
15
15
|
Fluent::Plugin.register_output('coralogix', self)
|
16
|
-
config_param :config, :hash, :default => {}, deprecated: "This parameter is deprecated"
|
17
16
|
config_param :endpoint, :string, :default => nil
|
18
17
|
config_param :privatekey, :string, :default => nil
|
19
18
|
config_param :appname, :string, :default => ""
|
@@ -22,7 +21,6 @@ module Fluent
|
|
22
21
|
config_param :timestamp_key_name, :default => nil
|
23
22
|
config_param :is_json, :bool, :default => false
|
24
23
|
config_param :force_compression, :bool, :default => false
|
25
|
-
config_param :debug, :bool, :default => false
|
26
24
|
config_param :number_of_workers, :integer, :default => 1
|
27
25
|
config_section :proxy, :param_name => "proxy", required: false, multi: false do
|
28
26
|
config_param :host, :string
|
@@ -40,15 +38,15 @@ module Fluent
|
|
40
38
|
@app_name_from_config = DEFAULT_appname;
|
41
39
|
@sub_name_from_config = DEFAULT_subsystemname;
|
42
40
|
i = 0
|
43
|
-
|
41
|
+
log.info "configure #{number_of_workers} workers"
|
44
42
|
until i == number_of_workers do
|
45
43
|
@workers[i.to_s] = {}
|
46
|
-
|
44
|
+
log.info "init worker ##{i}"
|
47
45
|
private_key = get_private_key
|
48
46
|
if !appname.start_with?("$") && !subsystemname.start_with?("$")
|
49
47
|
@app_name_from_config = config.fetch("APP_NAME", appname)
|
50
48
|
@sub_name_from_config = config.fetch("SUB_SYSTEM", subsystemname)
|
51
|
-
@workers[i.to_s]["#{@app_name_from_config}.#{@sub_name_from_config}"] = CoralogixLogger.new private_key, @app_name_from_config, @sub_name_from_config,
|
49
|
+
@workers[i.to_s]["#{@app_name_from_config}.#{@sub_name_from_config}"] = CoralogixLogger.new private_key, @app_name_from_config, @sub_name_from_config, false, "FluentD (#{version?})", force_compression, proxy ? proxy.to_h.map { |k,v| [k.to_s,v] }.to_h : Hash.new, log
|
52
50
|
else
|
53
51
|
@workers[i.to_s] = {}
|
54
52
|
end
|
@@ -61,7 +59,7 @@ module Fluent
|
|
61
59
|
end
|
62
60
|
|
63
61
|
rescue Exception => e
|
64
|
-
|
62
|
+
log.error "Failed to configure: #{e}"
|
65
63
|
end
|
66
64
|
end
|
67
65
|
|
@@ -87,7 +85,7 @@ module Fluent
|
|
87
85
|
end
|
88
86
|
return res
|
89
87
|
rescue Exception => e
|
90
|
-
|
88
|
+
log.error "Failed to extract #{key}: #{e}"
|
91
89
|
return default
|
92
90
|
end
|
93
91
|
end
|
@@ -115,7 +113,7 @@ module Fluent
|
|
115
113
|
worker = @workers[@currentWorker.to_s]
|
116
114
|
@currentWorker+=1;
|
117
115
|
if !worker.key?("#{app_name}.#{sub_name}")
|
118
|
-
worker["#{app_name}.#{sub_name}"] = CoralogixLogger.new private_key, app_name, sub_name,
|
116
|
+
worker["#{app_name}.#{sub_name}"] = CoralogixLogger.new private_key, app_name, sub_name, false, "FluentD (#{version?})", force_compression, proxy ? proxy.to_h.map { |k, v| [k.to_s, v] }.to_h : Hash.new, log
|
119
117
|
end
|
120
118
|
|
121
119
|
return worker["#{app_name}.#{sub_name}"]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-coralogix
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Royee Goldberg
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-03-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: centralized_ruby_logger
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.0.
|
19
|
+
version: 0.0.16
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.0.
|
26
|
+
version: 0.0.16
|
27
27
|
description: Coralogix Fluentd plugin to send logs to Coralogix server.
|
28
28
|
email: royee@coralogix.com
|
29
29
|
executables: []
|