logstash-output-coralogix 1.0.4 → 1.0.5

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
  SHA256:
3
- metadata.gz: cff16c5ca841dcaba15f3b703e88f90cb99f25aae515a423e216ee8474f45583
4
- data.tar.gz: 3a1cca6aa31c6c0220b15c7403884ac83524399d6efa6b50acab351dabbb23ee
3
+ metadata.gz: 68a61cebb9cdbf29259aa7d105e9bda6194ddeefdfccc917dd7b4496f8950dd2
4
+ data.tar.gz: 8987b411f5a3348f4f80cbb289b9fba8bc796324c20bdc93e3f4cffaa9ff169c
5
5
  SHA512:
6
- metadata.gz: e1f1102f5c474c66abf7d77a3edff3534ae0aad91c440144f46a993f8bf9a84adab43b4c23a3051cb961fc28b0a26092aa472dc82d8a2ab50aab75c638023ecb
7
- data.tar.gz: 6c5b73a7157121546c9d3bf95f7693f66fd5188c678d80f8bba8c3112eec32aa979cdfc90a8300242d5236f1a39420eebec960009a2824a25ade695c6499a633
6
+ metadata.gz: dd2d53e2812dbd3f0dd21340605983cad5c17f336bde064687035a56e1a08f9b5b481af96862482f568b308ce8cfca4a9eb216c83c95ebb1cd109500091c336e
7
+ data.tar.gz: b2f7d9c14080134ea52446232124f1e01f4f55ebbde4df22ebfa1b50dace5410beaabb1697a9b69a38fa68c466d76357b17908b0e8848c76c5a0e7294c6e662f
@@ -3,7 +3,6 @@ require "json"
3
3
  require "date"
4
4
  require "logstash/outputs/base"
5
5
  require "logstash/namespace"
6
- require "centralized_ruby_logger"
7
6
 
8
7
  DEFAULT_APP_NAME = "FAILED_APP_NAME"
9
8
  DEFAULT_SUB_SYSTEM = "FAILED_SUB_SYSTEM_NAME"
@@ -17,6 +16,7 @@ class LogStash::Outputs::Coralogix < LogStash::Outputs::Base
17
16
  config :is_json, :validate => :boolean, :required => false
18
17
  config :force_compression, :validate => :boolean, :required => false, :default => false
19
18
  config :debug, :validate => :boolean, :required => false, :default => false
19
+ config :endpoint, :validate => :string, :required => false, :default => nil
20
20
  config :proxy, :validate => :hash, :required => false, :default => {}
21
21
  @configured = false
22
22
 
@@ -62,6 +62,15 @@ class LogStash::Outputs::Coralogix < LogStash::Outputs::Base
62
62
  def configure
63
63
  begin
64
64
  @loggers = {}
65
+
66
+ # Overwrite Coralogix endpoint
67
+ unless endpoint.nil?
68
+ ENV["CORALOGIX_LOG_URL"] = "https://#{endpoint}/api/v1/logs"
69
+ ENV["CORALOGIX_TIME_DELTA_URL"] = "https://#{endpoint}/sdk/v1/time"
70
+ end
71
+
72
+ require "centralized_ruby_logger"
73
+
65
74
  #If config parameters doesn't start with $ then we can configure Coralogix logger now.
66
75
  if !config_params["APP_NAME"].start_with?("$") && !config_params["SUB_SYSTEM"].start_with?("$")
67
76
  @logger = Coralogix::CoralogixLogger.new config_params["PRIVATE_KEY"], config_params["APP_NAME"], config_params["SUB_SYSTEM"], debug, "Logstash (#{version?})", force_compression, proxy
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-output-coralogix'
3
- s.version = '1.0.4'
4
- s.date = '2020-10-12'
3
+ s.version = '1.0.5'
4
+ s.date = '2021-02-09'
5
5
  s.licenses = ['Apache-2.0']
6
6
  s.summary = 'Deliver the logs to Coralogix service.'
7
7
  s.description = 'This gem is a Logstash output plugin to deliver the logs to Coralogix service.'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-output-coralogix
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Coralogix
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-10-12 00:00:00.000000000 Z
11
+ date: 2021-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: logstash-core-plugin-api