fluent-plugin-beats 0.1.1 → 0.1.2
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 +4 -4
- data/VERSION +1 -1
- data/lib/fluent/plugin/in_beats.rb +6 -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: 8e40793ca72527a7af44146bd883883894616e4e
|
|
4
|
+
data.tar.gz: d69cafccc8d0da0f76bd19ca1fbae93301ab5e44
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a3403a05b6b5a96941db65aa06eec0aa6ff5cf13fdbb97d65ed78af409ea0d87bb9837415c1a18df8fdbd1f92f22c56da6260c3776700a6906ba44da032decb0
|
|
7
|
+
data.tar.gz: 1ad20c5d969bf2d11dabdf0674ee10126e77eb61a98f9b4148aa1d329d0822b47ede91cd9682a3bcf3077a5b830da70abb0ba38a4403f7f4dd7b7efcf8023fc8
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.1.
|
|
1
|
+
0.1.2
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
#
|
|
18
18
|
|
|
19
19
|
require 'fluent/input'
|
|
20
|
+
require 'fluent/parser'
|
|
20
21
|
|
|
21
22
|
module Fluent
|
|
22
23
|
class BeatsInput < Input
|
|
@@ -48,7 +49,7 @@ module Fluent
|
|
|
48
49
|
raise ConfigError, "'tag' or 'metadata_as_tag' parameter is required on beats input"
|
|
49
50
|
end
|
|
50
51
|
|
|
51
|
-
@time_parser = TextParser::TimeParser.new('%Y-%m-%dT%H:%M:%S.%N%z')
|
|
52
|
+
@time_parser = Fluent::TextParser::TimeParser.new('%Y-%m-%dT%H:%M:%S.%N%z')
|
|
52
53
|
if @format
|
|
53
54
|
@parser = Plugin.new_parser(@format)
|
|
54
55
|
@parser.configure(conf)
|
|
@@ -57,6 +58,8 @@ module Fluent
|
|
|
57
58
|
end
|
|
58
59
|
|
|
59
60
|
def start
|
|
61
|
+
super
|
|
62
|
+
|
|
60
63
|
@lumberjack = Lumberjack::Beats::Server.new(
|
|
61
64
|
:address => @bind, :port => @port, :ssl => @use_ssl, :ssl_certificate => @ssl_certificate,
|
|
62
65
|
:ssl_key => @ssl_key, :ssl_key_passphrase => @ssl_key_passphrase)
|
|
@@ -70,6 +73,8 @@ module Fluent
|
|
|
70
73
|
@lumberjack.close rescue nil
|
|
71
74
|
@thread_pool.shutdown
|
|
72
75
|
@thread.join
|
|
76
|
+
|
|
77
|
+
super
|
|
73
78
|
end
|
|
74
79
|
|
|
75
80
|
def run
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fluent-plugin-beats
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Masahiro Nakagawa
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-
|
|
11
|
+
date: 2016-09-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: fluentd
|