logstash-output-coralogix 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/logstash/outputs/coralogix.rb +10 -1
- data/logstash-output-coralogix.gemspec +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 68a61cebb9cdbf29259aa7d105e9bda6194ddeefdfccc917dd7b4496f8950dd2
|
4
|
+
data.tar.gz: 8987b411f5a3348f4f80cbb289b9fba8bc796324c20bdc93e3f4cffaa9ff169c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
s.date = '
|
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
|
+
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:
|
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
|