fluent-plugin-out-kivera 1.0.1 → 1.0.2

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: ce321115bd4b6032242005171702e374148359e62998ca3a4175ab6ae4aa8add
4
- data.tar.gz: 5891e23d0f951706f17314e708fed643761901f60eafe6e046abddc5e9bed907
3
+ metadata.gz: '0786fbc8d55e7954af817ef554758dd69ce532db13f6cf448a84beb1cf54fec5'
4
+ data.tar.gz: 140006b1217e9c98e32f5338ad96160361917d234ba8cf55b7dda891bf8d7388
5
5
  SHA512:
6
- metadata.gz: 63dc2922e9e0771369c125b3e33105656a9237703e8b5cd0cded8f7808481707af395f3416e8abedb26ffec891a3fee262b6290a841112120d6341c1cd671afa
7
- data.tar.gz: f47e150d7a7d920d5b4ada2e5d53a758efd39c4b3da4a896fedf7f42cc6027340837e9c77c350fd216fecf80145e5dcf5ec1e01f9fa443c8ebb4e72c12246ad5
6
+ metadata.gz: '0218466cb92d206906fdfca7491fb0a7485f4df13f08372c36f9f99aec5081e4eca6cccd499eb4341dbae2bec624ffacd5142ab63959d96157a0a07d70448724'
7
+ data.tar.gz: e0c964d575be14e3d333f541e5f04a727f00d798e38d6b6f6c2909edbe489dc77bd95e007b410698ed7cdc93d82211ab656a416927b5cfb86f7792902cb69975
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |gem|
4
4
  gem.name = "fluent-plugin-out-kivera"
5
- gem.version = "1.0.1"
5
+ gem.version = "1.0.2"
6
6
  gem.authors = ["Tyler Matheson"]
7
7
  gem.email = ["support@kivera.io"]
8
8
  gem.summary = "Fluentd plugin for Kivera"
@@ -24,7 +24,7 @@ class Fluent::Plugin::HTTPOutput < Fluent::Plugin::Output
24
24
  end
25
25
 
26
26
  # Endpoint URL ex. http://localhost.local/api/
27
- config_param :endpoint_url, :string
27
+ config_param :endpoint_url, :string, default: ""
28
28
 
29
29
  # Set Net::HTTP.verify_mode to `OpenSSL::SSL::VERIFY_NONE`
30
30
  config_param :ssl_no_verify, :bool, :default => false
@@ -136,6 +136,11 @@ class Fluent::Plugin::HTTPOutput < Fluent::Plugin::Output
136
136
  log.error "Missing configuration. Either specify a config_file or set the #{params} parameters"
137
137
  end
138
138
 
139
+ if @endpoint_url.empty?
140
+ @endpoint_url = "https://logs.#{@auth0_domain.delete_prefix("auth.")}"
141
+ log.info "Using logs endpoint #{@endpoint_url}"
142
+ end
143
+
139
144
  end
140
145
 
141
146
  def start
@@ -286,6 +291,8 @@ class Fluent::Plugin::HTTPOutput < Fluent::Plugin::Output
286
291
 
287
292
  begin
288
293
 
294
+ log.debug "Sending #{req.body.bytesize}B to #{uri}"
295
+
289
296
  if proxy = proxies
290
297
  proxy_uri = URI.parse(proxy)
291
298
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-out-kivera
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tyler Matheson