logstash-output-coralogix_logger 0.14.0 → 0.16.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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 73870342dcd4cb6ba8c326e27ad68e15b8c6ad94
|
4
|
+
data.tar.gz: 3332f4c91e9099e9c9a4e326a01dd90c41c6620b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 42f37f8ef0c6c7f08f56554bc7267d6aa6b2ffbcaea04ad0f17426bc14727c85cc692ed5afdf1f671c7a0addc108cc0763e229c88eb9bdb1f59abcacd3bb9a3d
|
7
|
+
data.tar.gz: 606cee19f5932204fcabc57dd8ba4655f3f6915b75705a121c31c395e4dc7931512f2702ec794378ea2c076e9dfb67d9734d647b27d54cf97dff15436c09a157
|
@@ -13,6 +13,7 @@ class LogStash::Outputs::CoralogixLogger < LogStash::Outputs::Base
|
|
13
13
|
config :config_params, :validate => :hash, :required => true
|
14
14
|
config :log_key_name, :validate => :string, :required => false
|
15
15
|
config :is_json, :validate => :boolean, :required => false
|
16
|
+
config :debug, :validate => :boolean, :required => false, :default => false
|
16
17
|
@configured = false
|
17
18
|
|
18
19
|
public
|
@@ -68,7 +69,7 @@ class LogStash::Outputs::CoralogixLogger < LogStash::Outputs::Base
|
|
68
69
|
@loggers = {}
|
69
70
|
#If config parameters doesn't start with $ then we can configure Coralogix logger now.
|
70
71
|
if !config_params["APP_NAME"].start_with?("$") && !config_params["SUB_SYSTEM"].start_with?("$")
|
71
|
-
@logger = Coralogix::CoralogixLogger.new config_params["PRIVATE_KEY"], config_params["APP_NAME"], config_params["SUB_SYSTEM"],
|
72
|
+
@logger = Coralogix::CoralogixLogger.new config_params["PRIVATE_KEY"], config_params["APP_NAME"], config_params["SUB_SYSTEM"], debug, "Logstash (#{version?})"
|
72
73
|
@configured = true
|
73
74
|
end
|
74
75
|
rescue Exception => e
|
@@ -104,7 +105,7 @@ class LogStash::Outputs::CoralogixLogger < LogStash::Outputs::Base
|
|
104
105
|
app_name, sub_name = get_app_sub_name(record)
|
105
106
|
|
106
107
|
if !@loggers.key?("#{app_name}.#{sub_name}")
|
107
|
-
@loggers["#{app_name}.#{sub_name}"] = Coralogix::CoralogixLogger.new config_params["PRIVATE_KEY"], app_name, sub_name,
|
108
|
+
@loggers["#{app_name}.#{sub_name}"] = Coralogix::CoralogixLogger.new config_params["PRIVATE_KEY"], app_name, sub_name, debug, "Logstash (#{version?})"
|
108
109
|
end
|
109
110
|
|
110
111
|
return @loggers["#{app_name}.#{sub_name}"]
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'logstash-output-coralogix_logger'
|
3
|
-
s.version = '0.
|
3
|
+
s.version = '0.16.0'
|
4
4
|
s.licenses = ['Apache License (2.0)']
|
5
5
|
s.summary = 'Coralogix Logstash logger SDK'
|
6
6
|
s.description = 'Coralogix Logstash logger to send logs to Coralogix server'
|