fluent-plugin-logzio 0.0.18 → 0.0.19
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -0
- data/fluent-plugin-logzio.gemspec +1 -1
- data/lib/fluent/plugin/out_logzio_buffered.rb +4 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 17485e8da5dcd5e20352ee01f41f480d4158027a
|
4
|
+
data.tar.gz: f9255f6ae60a9a481352b2d1939838b52b5cf5e1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
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.
|
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.
|
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-
|
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
|