fluent-plugin-coralogix 1.0.6 → 1.0.7

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ade24fd56923cdeef1a0f2c67326b96845c70a1c30a6a31b1c9d1cc8b8324a63
4
- data.tar.gz: d74252467309c8a9ed77de3e002b9dec8345c61e6e452bc929a24d048e5d8934
3
+ metadata.gz: 7c41a200602498024b0dfa869418e82a7997982f249f51d32630dd33c09ec037
4
+ data.tar.gz: a652ef47796968d984e94aa86e1c92b593f74c4cc7e90145909df8259e0d6f8f
5
5
  SHA512:
6
- metadata.gz: a986b00fceeb1981307e1cea165abc39a36419e6bd6ec2f109ad8baea702e8925dc334e38aebc60e10d28ac8b58c9da077668bb48b324947b8ed36a62627b6c7
7
- data.tar.gz: dd481eae2b188d5b591c07dbde93232247a928fc2225f3ce88c4b298c583e937281947aa8d423841f68d2bf7cbbe12135ab08a3de260001627098a71c9d45853
6
+ metadata.gz: a769ed473fbfd0035db47cddf4980746f866b1087ae217caa55aa7c44d19f1af90dc6b0959ac4e3324643fa87635509bc30e5fbbe2718aec8a0d92aaca2a8caa
7
+ data.tar.gz: 91c8fe7de64cf8ce1d3465fdaa5d32a9558dcef7594f9843ae66785dcdb3adc22723696e5c9a6aa14dd8f078eaec00422259d0ed6697ad5f1166075794ccd160
@@ -14,6 +14,7 @@ module Fluent
14
14
  # and identifies the plugin in the configuration file.
15
15
  Fluent::Plugin.register_output('coralogix', self)
16
16
  config_param :config, :hash, :default => {}, deprecated: "This parameter is deprecated"
17
+ config_param :endpoint, :string, :default => nil
17
18
  config_param :privatekey, :string, :default => nil
18
19
  config_param :appname, :string, :default => ""
19
20
  config_param :subsystemname, :string, :default => ""
@@ -54,6 +55,11 @@ module Fluent
54
55
  i+=1
55
56
  end
56
57
 
58
+ unless endpoint.nil?
59
+ ENV["CORALOGIX_LOG_URL"] = "https://#{endpoint}/api/v1/logs"
60
+ ENV["CORALOGIX_TIME_DELTA_URL"] = "https://#{endpoint}/sdk/v1/time"
61
+ end
62
+
57
63
  rescue Exception => e
58
64
  $log.error "Failed to configure: #{e}"
59
65
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-coralogix
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.6
4
+ version: 1.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Royee Goldberg
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-11-26 00:00:00.000000000 Z
11
+ date: 2021-02-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: centralized_ruby_logger