logstash-output-coralogix_logger 0.20.1 → 0.21.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: b60c4bebcaa78d90eeed5ef832be07bc2fea0be0
4
- data.tar.gz: 7feb762a55b9cb87d20e5b358e0f4502162e744d
3
+ metadata.gz: 25c46e646780d7a174068ec246dc459b6dcd182e
4
+ data.tar.gz: 2888271c97e53a8c05247d741a1bb45e01edf721
5
5
  SHA512:
6
- metadata.gz: 2f88a2110e57e0d6455726a687b9ac1b5713d2e487f52f9da7741df6b5a9b79b73f102ac50d6fa45dd6acaa7e85f78add6ac50f4849570e189460ad262d8ea24
7
- data.tar.gz: 140a1142cc829ee17e368b21a7a1e0f09f5cb5be21c852e60278c4bb3faeb15094634b740a978fecbc41f52868ad7fc7386ae2c1bf327475e2f96a0baf4283f3
6
+ metadata.gz: f77fcace5fc46f657c0a6a6a6bdd458d2840cc7233be9ba0ac7aee7f8d23aee6a854200b180c0809fb57d1a7adf76bbf3b1ecfafb6dfdc848f42ca8a2797bf75
7
+ data.tar.gz: fcdb9d4a6a38154e3b2c26d2650d3bcd1cc9e36ba74948735003d37f0e982614d458ff1f791565f12c609112f2c68ecdab5f5b9127bc46e1426f55fdcfbff5cd
@@ -15,6 +15,7 @@ class LogStash::Outputs::CoralogixLogger < LogStash::Outputs::Base
15
15
  config :timestamp_key_name, :validate => :string, :required => false
16
16
  config :log_key_name, :validate => :string, :required => false
17
17
  config :is_json, :validate => :boolean, :required => false
18
+ config :force_compression, :validate => :boolean, :required => false, :default => false
18
19
  config :debug, :validate => :boolean, :required => false, :default => false
19
20
  @configured = false
20
21
 
@@ -82,7 +83,7 @@ class LogStash::Outputs::CoralogixLogger < LogStash::Outputs::Base
82
83
  @loggers = {}
83
84
  #If config parameters doesn't start with $ then we can configure Coralogix logger now.
84
85
  if !config_params["APP_NAME"].start_with?("$") && !config_params["SUB_SYSTEM"].start_with?("$")
85
- @logger = Coralogix::CoralogixLogger.new config_params["PRIVATE_KEY"], config_params["APP_NAME"], config_params["SUB_SYSTEM"], debug, "Logstash (#{version?})"
86
+ @logger = Coralogix::CoralogixLogger.new config_params["PRIVATE_KEY"], config_params["APP_NAME"], config_params["SUB_SYSTEM"], debug, "Logstash (#{version?})", force_compression
86
87
  @configured = true
87
88
  end
88
89
  rescue Exception => e
@@ -118,7 +119,7 @@ class LogStash::Outputs::CoralogixLogger < LogStash::Outputs::Base
118
119
  app_name, sub_name = get_app_sub_name(record)
119
120
 
120
121
  if !@loggers.key?("#{app_name}.#{sub_name}")
121
- @loggers["#{app_name}.#{sub_name}"] = Coralogix::CoralogixLogger.new config_params["PRIVATE_KEY"], app_name, sub_name, debug, "Logstash (#{version?})"
122
+ @loggers["#{app_name}.#{sub_name}"] = Coralogix::CoralogixLogger.new config_params["PRIVATE_KEY"], app_name, sub_name, debug, "Logstash (#{version?})", force_compression
122
123
  end
123
124
 
124
125
  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.20.1'
3
+ s.version = '0.21.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'
@@ -21,6 +21,6 @@ Gem::Specification.new do |s|
21
21
  #s.add_dependency 'centralized_ruby_logger'
22
22
  s.add_runtime_dependency "logstash-core-plugin-api", "~> 2.0"
23
23
  s.add_runtime_dependency "logstash-codec-plain"
24
- s.add_runtime_dependency "centralized_ruby_logger", ">= 0.0.9"
24
+ s.add_runtime_dependency "centralized_ruby_logger", ">= 0.0.10"
25
25
  s.add_development_dependency "logstash-devutils"
26
26
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-output-coralogix_logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.20.1
4
+ version: 0.21.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Royee Goldberg
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-22 00:00:00.000000000 Z
11
+ date: 2018-04-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: logstash-core-plugin-api
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: 0.0.9
47
+ version: 0.0.10
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: 0.0.9
54
+ version: 0.0.10
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: logstash-devutils
57
57
  requirement: !ruby/object:Gem::Requirement