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 +4 -4
- data/lib/logstash/outputs/fluentd.rb +4 -3
- data/logstash-output-fluentd.gemspec +1 -1
- 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: aa4944479863ddf438795fc98f4fa662074a75da
|
4
|
+
data.tar.gz: ce72f08cd8c8cfd9e3644e81058d1b8428c3cc6d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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.
|
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.
|
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-
|
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
|