fluent-plugin-logzio 0.0.18 → 0.0.19

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: 9fe823f8f85d3c4d5d4c6952f120c68424820a6d
4
- data.tar.gz: 5386d17768ed678db72e22576ca46e3406faff06
3
+ metadata.gz: 17485e8da5dcd5e20352ee01f41f480d4158027a
4
+ data.tar.gz: f9255f6ae60a9a481352b2d1939838b52b5cf5e1
5
5
  SHA512:
6
- metadata.gz: 266cfdbe5ff46ed3a2db6cbae17485e49013ebbc798fd12a0565db189cf21d35290894d5f99ac44eaef339cd003f344165f10b9d77a46d6b3a2064d8672ffc53
7
- data.tar.gz: c96350c4d26d4d6a0f533e4697959986d4f6e6d98e6f5a67ad0d83300de8fa0e75efdd6d71401de61b8207d49be56f509d2b222ee30fad50ee0bf3d6440df6f8
6
+ metadata.gz: de25eaeb14be8b1e583640e1eab772a0b71c036cc268a41996efff4d31a6bd89f22eb7f2a5b0bfe67af802ce8585508e3782e80169bf6063146a08e22c0c807c
7
+ data.tar.gz: a089634c8368a3acaef3451b32278e9e9e391035d6790450a77fd7d53e6cff6b727f24a699ab22665eda8afb25c927ea5087fb88ef3b765d03e18629ecee9019
data/README.md CHANGED
@@ -69,8 +69,12 @@ This is an **example** only. Your needs in production may vary!
69
69
  * **retry_sleep** How long to sleep initially between retries, exponential step-off. Initial default is 2s.
70
70
  * **bulk_limit** Limit to the size of the Logz.io upload bulk. Defaults to 1000000 bytes leaving about 24kB for overhead.
71
71
  * **bulk_limit_warning_limit** Limit to the size of the Logz.io warning message when a record exceeds bulk_limit to prevent a recursion when Fluent warnings are sent to the Logz.io output. Defaults to nil (no truncation).
72
+ * **proxy_uri** Your proxy uri. Default is nil
73
+ * **proxy_cert** Your proxy cert. Default is nil
74
+
72
75
 
73
76
  ## Release Notes
77
+ - 0.0.18: Support proxy_uri and proxy_cert in the configuration file. Put logzio output plugin class under Fluent::Plugin module and thus work with multi workers.
74
78
  - 0.0.17: Optional truncate log messages when they are exceeding bulk size in warning logs
75
79
  - 0.0.16: More fluentD 1.0+ adjustments
76
80
  - 0.0.15: Support FluentD 1.0+. Split the chunk into bulk uploads, decoupling `chunk_limit_size`/`buffer_chunk_limit` from Logz.io bulk limit. Tunable `bulk_limit` and initial `retry_sleep`.
@@ -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.18'
7
+ s.version = '0.0.19'
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'
@@ -29,12 +29,12 @@ module Fluent::Plugin
29
29
  log.debug "Proxy #{@proxy_uri}"
30
30
  ENV['http_proxy'] = @proxy_uri
31
31
  end
32
-
32
+
33
33
  if conf['proxy_cert']
34
34
  log.debug "Proxy #{@proxy_cert}"
35
35
  ENV['SSL_CERT_FILE'] = @proxy_cert
36
36
  end
37
-
37
+
38
38
  end
39
39
 
40
40
  def start
@@ -138,14 +138,14 @@ module Fluent::Plugin
138
138
  log.info "Got 400 code from Logz.io. This means that some of your logs are too big, or badly formatted. Response: #{response.body}"
139
139
  should_retry = false
140
140
  else
141
- log.debug "Got HTTP #{response.code} from Logz.io, not giving up just yet (Try #{counter + 1}/#{@retry_count})"
141
+ log.warn "Got HTTP #{response.code} from Logz.io, not giving up just yet (Try #{counter + 1}/#{@retry_count})"
142
142
  end
143
143
  else
144
144
  log.debug "Successfully sent bulk of #{bulk_records.size} records, size #{bulk_size}B to Logz.io"
145
145
  should_retry = false
146
146
  end
147
147
  rescue StandardError => e
148
- log.debug "Error connecting to Logz.io. Got exception: #{e} (Try #{counter + 1}/#{@retry_count})"
148
+ log.warn "Error connecting to Logz.io. Got exception: #{e} (Try #{counter + 1}/#{@retry_count})"
149
149
  end
150
150
 
151
151
  if should_retry
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.18
4
+ version: 0.0.19
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-10-10 00:00:00.000000000 Z
13
+ date: 2018-12-17 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: net-http-persistent