fluent-plugin-logzio 0.0.17 → 0.0.18
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/fluent-plugin-logzio.gemspec +1 -1
- data/lib/fluent/plugin/out_logzio_buffered.rb +18 -1
- data/spec/lib/fluent/plugin/out_logzio_buffered_spec.rb +2 -2
- data/spec/lib/fluent/plugin/out_logzio_multi_bulk_spec.rb +2 -2
- data/spec/lib/fluent/plugin/out_logzio_record_too_large_spec.rb +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9fe823f8f85d3c4d5d4c6952f120c68424820a6d
|
4
|
+
data.tar.gz: 5386d17768ed678db72e22576ca46e3406faff06
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 266cfdbe5ff46ed3a2db6cbae17485e49013ebbc798fd12a0565db189cf21d35290894d5f99ac44eaef339cd003f344165f10b9d77a46d6b3a2064d8672ffc53
|
7
|
+
data.tar.gz: c96350c4d26d4d6a0f533e4697959986d4f6e6d98e6f5a67ad0d83300de8fa0e75efdd6d71401de61b8207d49be56f509d2b222ee30fad50ee0bf3d6440df6f8
|
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |s|
|
6
6
|
s.name = 'fluent-plugin-logzio'
|
7
|
-
s.version = '0.0.
|
7
|
+
s.version = '0.0.18'
|
8
8
|
s.authors = ['Yury Kotov', 'Roi Rav-Hon', 'Arcadiy Ivanov']
|
9
9
|
s.email = ['bairkan@gmail.com', 'roi@logz.io', 'arcadiy@ivanov.biz']
|
10
10
|
s.homepage = 'https://github.com/logzio/fluent-plugin-logzio'
|
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'time'
|
2
2
|
require 'fluent/plugin/output'
|
3
3
|
|
4
|
-
module Fluent
|
4
|
+
module Fluent::Plugin
|
5
5
|
class LogzioOutputBuffered < Output
|
6
6
|
Fluent::Plugin.register_output('logzio_buffered', self)
|
7
7
|
|
@@ -16,12 +16,25 @@ module Fluent
|
|
16
16
|
config_param :bulk_limit_warning_limit, :integer, default: nil # If fluent warnings are sent to the Logzio output, truncating is necessary to prevent a recursion
|
17
17
|
config_param :http_idle_timeout, :integer, default: 5
|
18
18
|
config_param :output_tags_fieldname, :string, default: 'fluentd_tags'
|
19
|
+
config_param :proxy_uri, :string, default: nil
|
20
|
+
config_param :proxy_cert, :string, default: nil
|
19
21
|
|
20
22
|
def configure(conf)
|
21
23
|
super
|
22
24
|
compat_parameters_convert(conf, :buffer)
|
23
25
|
|
24
26
|
log.debug "Logz.io URL #{@endpoint_url}"
|
27
|
+
|
28
|
+
if conf['proxy_uri']
|
29
|
+
log.debug "Proxy #{@proxy_uri}"
|
30
|
+
ENV['http_proxy'] = @proxy_uri
|
31
|
+
end
|
32
|
+
|
33
|
+
if conf['proxy_cert']
|
34
|
+
log.debug "Proxy #{@proxy_cert}"
|
35
|
+
ENV['SSL_CERT_FILE'] = @proxy_cert
|
36
|
+
end
|
37
|
+
|
25
38
|
end
|
26
39
|
|
27
40
|
def start
|
@@ -44,6 +57,10 @@ module Fluent
|
|
44
57
|
true
|
45
58
|
end
|
46
59
|
|
60
|
+
def multi_workers_ready?
|
61
|
+
true
|
62
|
+
end
|
63
|
+
|
47
64
|
def format(tag, time, record)
|
48
65
|
if time.is_a?(Fluent::EventTime)
|
49
66
|
sec_frac = time.to_f
|
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
|
-
describe 'Fluent::LogzioOutputBuffered' do
|
4
|
-
let(:driver) { Fluent::Test::Driver::Output.new(Fluent::LogzioOutputBuffered).configure(config) }
|
3
|
+
describe 'Fluent::Plugin::LogzioOutputBuffered' do
|
4
|
+
let(:driver) { Fluent::Test::Driver::Output.new(Fluent::Plugin::LogzioOutputBuffered).configure(config) }
|
5
5
|
let(:config) do
|
6
6
|
%[
|
7
7
|
endpoint_url https://logz.io?token=123
|
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
|
-
describe 'Fluent::LogzioOutputBuffered' do
|
4
|
-
let(:driver) { Fluent::Test::Driver::Output.new(Fluent::LogzioOutputBuffered).configure(config) }
|
3
|
+
describe 'Fluent::Plugin::LogzioOutputBuffered' do
|
4
|
+
let(:driver) { Fluent::Test::Driver::Output.new(Fluent::Plugin::LogzioOutputBuffered).configure(config) }
|
5
5
|
let(:config) do
|
6
6
|
%[
|
7
7
|
endpoint_url https://logz.io?token=123
|
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
|
-
describe 'Fluent::LogzioOutputBuffered' do
|
4
|
-
let(:driver) { Fluent::Test::Driver::Output.new(Fluent::LogzioOutputBuffered).configure(config) }
|
3
|
+
describe 'Fluent::Plugin::LogzioOutputBuffered' do
|
4
|
+
let(:driver) { Fluent::Test::Driver::Output.new(Fluent::Plugin::LogzioOutputBuffered).configure(config) }
|
5
5
|
let(:config) do
|
6
6
|
%[
|
7
7
|
endpoint_url https://logz.io?token=123
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-logzio
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.18
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yury Kotov
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2018-
|
13
|
+
date: 2018-10-10 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: net-http-persistent
|
@@ -143,7 +143,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
143
143
|
version: '0'
|
144
144
|
requirements: []
|
145
145
|
rubyforge_project: fluent-plugin-logzio
|
146
|
-
rubygems_version: 2.5.
|
146
|
+
rubygems_version: 2.5.2.3
|
147
147
|
signing_key:
|
148
148
|
specification_version: 4
|
149
149
|
summary: Fluentd plugin for output to Logz.io
|