fluent-plugin-logzio 0.2.0.pre.test1 → 0.2.2.pre.test

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8ff307f46dc9f34f4f4cdd60374c340c81ab328c6e1485d8cf77d7c833709b9e
4
- data.tar.gz: 286c954bb9c4a1e1ead99edf25e96a77556254b58afdb74dcccba4773e1a0a10
3
+ metadata.gz: 3b6bd09f5f18fef04ce24aa4c50e4e91f5c65c82ced4d474e19f7c7d45385f7a
4
+ data.tar.gz: 2c118f9d018f77ed8c422b8eeb91c918ab7de012148590642e291ed1a0f28884
5
5
  SHA512:
6
- metadata.gz: 85ff70985c0fda5b6220c8cf6e0fa1306525940828c03c75d097bebe9cda65e6e6097f020454c06e4b17137d02a7b77c1bf492c5e0261f2dad45336357e554ab
7
- data.tar.gz: dafe99b38c2d4f9e33efa7c71334d21c6493318b9d407a90cb13a5d9b0877df36af0bc047f166697ec0b816be3b79018298a6a4742a78191c5836dfd275b0515
6
+ metadata.gz: e4c30495d58731e9f06283ef83498f5b0c89b6cd98e68d18c59972ea3ac2a9d2705dd321b90d2034c6d1a2410052d8bdf9c102b9a1b7feb54e1078118c5e80d9
7
+ data.tar.gz: af315ac935bad7463f893ce362decaeff998919cf8659f266a698897df50e66cc81d0518bc397087993ca6b09bb360b7e70d8eaa7e26de8547e5f971d48ba324
data/README.md CHANGED
@@ -82,9 +82,17 @@ This is an **example** only. Your needs in production may vary!
82
82
 
83
83
 
84
84
  ## Release Notes
85
- - **0.2.0**:
85
+ - **0.2.2**:
86
+ - Bug fix - add require for prometheus client.
87
+ - **0.2.1**:
86
88
  - Do not retry on 400 and 401. For 400 - try to fix log and resend.
87
89
  - Generate a metric (`logzio_status_codes`) for response codes from Logz.io.
90
+
91
+
92
+ <details>
93
+ <summary markdown="span"> Expand to check old versions </summary>
94
+
95
+ - **0.2.0**: N/A - version was yanked. Please refer to **0.2.1**.
88
96
  - **0.1.0**:
89
97
  - Use fluentd's retry instead of retry in code (raise exception on non-2xx response).
90
98
  - 0.0.22: Update gem `net-http-persistent` to 4.x.
@@ -97,3 +105,5 @@ This is an **example** only. Your needs in production may vary!
97
105
  - 0.0.14: Refactor send function to handle more cases, and retry in case of logzio connection failure.
98
106
  - 0.0.13: BREAKING - Removed non-buffered version. It's really not efficient, and should just not be used. If you are using this version, you should change to the buffered one.
99
107
  - 0.0.12: Catch exception when parsing YAML to ignore (instead of crash) not valid logs.
108
+
109
+ </details>
@@ -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.2.0-test1'
7
+ s.version = '0.2.2-test'
8
8
  s.authors = ['Yury Kotov', 'Roi Rav-Hon', 'Arcadiy Ivanov', 'Miri Bar']
9
9
  s.email = ['bairkan@gmail.com', 'roi@logz.io', 'arcadiy@ivanov.biz', 'miri.ignatiev@logz.io']
10
10
  s.homepage = 'https://github.com/logzio/fluent-plugin-logzio'
@@ -2,6 +2,7 @@ require 'time'
2
2
  require 'fluent/plugin/output'
3
3
  require 'zlib'
4
4
  require 'stringio'
5
+ require 'prometheus/client'
5
6
 
6
7
  module Fluent::Plugin
7
8
  class LogzioOutputBuffered < Output
@@ -139,10 +140,8 @@ module Fluent::Plugin
139
140
  response = do_post(bulk_records, bulk_size)
140
141
 
141
142
  @metrics[:status_codes].increment(labels: merge_labels({'status_code': response.code.to_s}))
142
- log.info "Status code from logzio: #{response.code}"
143
143
 
144
144
  if not response.code.start_with?('2')
145
- log.info "here here here"
146
145
  if response.code == '400'
147
146
  log.warn "Received #{response.code} from Logzio. Some logs may be malformed or too long. Valid logs were succesfully sent into the system. Will try to proccess and send oversized logs. Response body: #{response.body}"
148
147
  process_code_400(bulk_records, Yajl.load(response.body))
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.2.0.pre.test1
4
+ version: 0.2.2.pre.test
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yury Kotov
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2023-07-12 00:00:00.000000000 Z
14
+ date: 2023-07-16 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: net-http-persistent