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: 4b7a600252837b73869d239a8b25977125a78111
4
- data.tar.gz: 8303bd1de500a53193824cf0ae81c1d015b63cd2
3
+ metadata.gz: 73870342dcd4cb6ba8c326e27ad68e15b8c6ad94
4
+ data.tar.gz: 3332f4c91e9099e9c9a4e326a01dd90c41c6620b
5
5
  SHA512:
6
- metadata.gz: b6c72f5238758d412d6c75b3e85fa6f266eb48b466fe69beb8bdb70d7156917e10847ed7067e330f6508f49b2833c50b1651114e08323963ed27b8aade2fbfa1
7
- data.tar.gz: 5694bd0373b4dc83e5f24cda1c9fe44a191e0ac1d1c3b2f5e199bbc149c425164926ef85c4c95cd8debae3004450bf1f93f2f074439ad2b1fcca9b3700f98469
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"], false, "Logstash (#{version?})"
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, false, "Logstash (#{version?})"
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.14.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'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-output-coralogix_logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.0
4
+ version: 0.16.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Royee Goldberg