fluent-plugin-logzio 0.0.3 → 0.0.4

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: 11d3f4a159acd08d6095600f0797a728286d5506
4
- data.tar.gz: cd557a5cc9b16d7f8a1a3dbda0ba49f9905141f3
3
+ metadata.gz: e50fbf260482f0fad7f0d19e309bf0e140bbba71
4
+ data.tar.gz: 292aa6c418027ec4fe8cfcb7692d13ea210fc04b
5
5
  SHA512:
6
- metadata.gz: 974b08d3a578522f7d481d936cb9b13637a3380f8fcb4dc7834aa5841608f8d7c0104d469eff5a170b8670d790300a769733289b9ece14698f167e356dce5482
7
- data.tar.gz: 6bf09502c2396b3e59167af13c80e1411e88c1b2c4a4d19b29b11b874528fb89b7038193b01203fafcbfe937a5da533a34bef83b3859590e425f55fce6374780
6
+ metadata.gz: 0381f564318f9711a77cf98a26302a84b2de9edc0615a9bf552192dd4a618b46577fe818e02cad7f9ea92ef9f1a38ee5db9ebbf174182eab145f19aee6404692
7
+ data.tar.gz: 3837a19f9e1e6910bc47b976721369bcb2933b952b6a976765884673838a9a35f8df2d7aaad54d64ca5b56b662b703f0672812e54ac101f7114c24c2dbc81e17
@@ -4,12 +4,13 @@ $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.3'
7
+ s.version = '0.0.4'
8
8
  s.authors = ['Yury Kotov', 'Roi Rav-Hon']
9
9
  s.email = ['bairkan@gmail.com', 'roi@logz.io']
10
10
  s.homepage = 'https://github.com/logzio/fluent-plugin-logzio'
11
11
  s.summary = %q{Fluentd plugin for output to Logz.io}
12
12
  s.description = %q{Fluentd pluging (fluent.org) for output to Logz.io (logz.io)}
13
+ s.license = 'Apache-2.0'
13
14
 
14
15
  s.rubyforge_project = 'fluent-plugin-logzio'
15
16
 
@@ -36,7 +36,7 @@ module Fluent
36
36
  records = []
37
37
 
38
38
  chunk.msgpack_each {|tag,time,record|
39
- record['@timestamp'] ||= Time.at(time).iso8601 if @output_include_time
39
+ record['@timestamp'] ||= Time.at(time).iso8601(3) if @output_include_time
40
40
  record['fluentd_tags'] ||= tag.to_s if @output_include_tags
41
41
  records.push(record.to_json)
42
42
  }
@@ -44,7 +44,7 @@ module Fluent
44
44
  $log.debug "Got flush timeout, containing #{records.length} chunks"
45
45
 
46
46
  # Setting our request
47
- post = Net::HTTP::Post.new @uri.request_uri
47
+ post = Net::HTTP::Post.new @uri.request_uri
48
48
 
49
49
  # Logz.io bulk http endpoint expecting log line with \n delimiter
50
50
  post.body = records.join("\n")
@@ -58,7 +58,7 @@ module Fluent
58
58
  $log.debug "Got HTTP #{response.code} from logz.io, not giving up just yet"
59
59
 
60
60
  # If any other non-200, we will try to resend it after 2, 4 and 8 seconds. Then we will give up
61
-
61
+
62
62
  sleep_interval = 2
63
63
  @retry_count.times do |counter|
64
64
 
@@ -78,7 +78,7 @@ module Fluent
78
78
  break
79
79
 
80
80
  else
81
-
81
+
82
82
  # Doubling the sleep interval
83
83
  sleep_interval *= 2
84
84
 
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.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yury Kotov
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-12-13 00:00:00.000000000 Z
12
+ date: 2016-06-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: net-http-persistent
@@ -116,7 +116,8 @@ files:
116
116
  - spec/lib/fluent/plugin/out_logzio_spec.rb
117
117
  - spec/spec_helper.rb
118
118
  homepage: https://github.com/logzio/fluent-plugin-logzio
119
- licenses: []
119
+ licenses:
120
+ - Apache-2.0
120
121
  metadata: {}
121
122
  post_install_message:
122
123
  rdoc_options: []
@@ -134,7 +135,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
134
135
  version: '0'
135
136
  requirements: []
136
137
  rubyforge_project: fluent-plugin-logzio
137
- rubygems_version: 2.0.14
138
+ rubygems_version: 2.0.14.1
138
139
  signing_key:
139
140
  specification_version: 4
140
141
  summary: Fluentd plugin for output to Logz.io