fluent-plugin-logzio 0.0.17 → 0.0.18

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
  SHA1:
3
- metadata.gz: f536821f3b16af3e536157a7c0689f92a9123d0b
4
- data.tar.gz: 07103312f4d8d969ec9332e1117c684fd311ed8a
3
+ metadata.gz: 9fe823f8f85d3c4d5d4c6952f120c68424820a6d
4
+ data.tar.gz: 5386d17768ed678db72e22576ca46e3406faff06
5
5
  SHA512:
6
- metadata.gz: 207bce099d2b610d49833ce704c119a0d2eb981b41d8ecb863af7ad4dfd5868a8958e15f393c1e7c8a9ab7ac2203e11f017a7776b636b88b090138a464ca5f1c
7
- data.tar.gz: 5f5c803734b96374ccd03a32b72ae3bf257471124e12bdf0cac7065cfcaaa45e09ee442af099193e6ae813771b6a068d649f3a9a5145759877f61e14707d9e24
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.17'
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.17
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-06-20 00:00:00.000000000 Z
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.1
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