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 +4 -4
- data/fluent-plugin-out-kivera.gemspec +1 -1
- data/lib/fluent/plugin/out_kivera.rb +8 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '0786fbc8d55e7954af817ef554758dd69ce532db13f6cf448a84beb1cf54fec5'
|
4
|
+
data.tar.gz: 140006b1217e9c98e32f5338ad96160361917d234ba8cf55b7dda891bf8d7388
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '0218466cb92d206906fdfca7491fb0a7485f4df13f08372c36f9f99aec5081e4eca6cccd499eb4341dbae2bec624ffacd5142ab63959d96157a0a07d70448724'
|
7
|
+
data.tar.gz: e0c964d575be14e3d333f541e5f04a727f00d798e38d6b6f6c2909edbe489dc77bd95e007b410698ed7cdc93d82211ab656a416927b5cfb86f7792902cb69975
|
@@ -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
|
|