logstash-output-fluentd 0.9.0 → 0.9.1

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
  SHA1:
3
- metadata.gz: 679afb9f5878c0415bc009c1646cd53523aee1fb
4
- data.tar.gz: cb3748f11018e40426689b4834f628a61759b506
3
+ metadata.gz: aa4944479863ddf438795fc98f4fa662074a75da
4
+ data.tar.gz: ce72f08cd8c8cfd9e3644e81058d1b8428c3cc6d
5
5
  SHA512:
6
- metadata.gz: 56fafcc907032356900d3b757210a9955361c42ec236812ccf5e7fa6b3edbd05a74a40225c63e14a57b4a1dce22c285c41948c9bc0ca23f18784861c585164d1
7
- data.tar.gz: 3e4025a683a19e502b76987810dfe8aa4e991ae102f21386e2a8d715d8f153cfdb9a252d9994b6be9cf62019991a3197784205c14c7c22b1a855f4a423ba36a3
6
+ metadata.gz: 6367b480201ff20bfc5bfcc6ae99f361e4d978c0dc0b2df908dc07131f820461d78be8c5fffd1b47886369b3cefa879952d899729ed1bbd33678dc29711500dd
7
+ data.tar.gz: 1167133b13baaab8596dc9c580fb82f784b352fffbeb9771864e02a4839e81584b9284f19339c10bf6d4f5fad4b8cec462b7ad3b49fcf4beb2bc0763e033052b
@@ -9,14 +9,12 @@ require "socket"
9
9
 
10
10
  require "msgpack"
11
11
 
12
- require_relative "./fluentd/version"
13
-
14
12
  class LogStash::Event
15
13
  def to_msgpack(packer=nil)
16
14
  # LogStash objects (ex: LogStash::Timestamp) are impossible to serialize by msgpack
17
15
  begin
18
16
  @data.reject{|a,b| a == TIMESTAMP }.to_msgpack
19
- rescue ArgumentError => e
17
+ rescue ArgumentError, NoMethodError
20
18
  LogStash::Json.load(@data.to_json).to_msgpack
21
19
  end
22
20
  end
@@ -41,6 +39,9 @@ class LogStash::Outputs::Fluentd < LogStash::Outputs::Base
41
39
  config :flush_size, validate: :number, default: 50 # 50 records
42
40
  config :flush_interval, validate: :number, default: 5 # 5 seconds
43
41
 
42
+ require 'rubygems'
43
+ VERSION = Gem::Specification.load(File.expand_path('../../../../logstash-output-fluentd.gemspec', __FILE__)).version
44
+
44
45
  public
45
46
  def register
46
47
  buffer_initialize(
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-output-fluentd'
3
- s.version = "0.9.0"
3
+ s.version = "0.9.1"
4
4
  s.licenses = ["Apache License (2.0)"]
5
5
  s.summary = "Logstash plugin to forward data to fluentd nodes"
6
6
  s.description = "This gem is a logstash plugin to forward data from logstash to fluentd. This gem is not a stand-alone program."
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-output-fluentd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Satoshi Tagomori
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-03 00:00:00.000000000 Z
11
+ date: 2016-03-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement