fluent-plugin-beats 0.1.0 → 0.1.1
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/README.md +6 -2
- data/VERSION +1 -1
- data/lib/fluent/plugin/in_beats.rb +4 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 567f81b574dfab5403a688381d9f1de8db3a3401
|
4
|
+
data.tar.gz: 0fb38a58cc230acfdfb722279f204e24cd30a74a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 86fcef9715d7e74e58b6eee871237e629c113450a56f9e710340b2faf575dc68766c98b9179f0769a09ec3af16da8f0dfe0acc3f88ec5bca367d7e51ba46f5d7
|
7
|
+
data.tar.gz: fc289b05f668370246e80496724a91841b5cfbeb5f2c181842baa524017d06591010d43fc4ba1be4f7f7f4c194b4fd19c02947655d2f63b3e5b5f798a14e7185
|
data/README.md
CHANGED
@@ -39,7 +39,7 @@ Configuration example:
|
|
39
39
|
|
40
40
|
**metadata_as_tag**
|
41
41
|
|
42
|
-
Use `record['@metadata']['beat']` value instead of fixed tag.
|
42
|
+
Use `record['@metadata']['beat']` value instead of fixed tag.
|
43
43
|
|
44
44
|
**format**
|
45
45
|
|
@@ -58,4 +58,8 @@ Configuration example:
|
|
58
58
|
* `lumberjack` directory is copied from `logstash-input-beats` and bit modified.
|
59
59
|
* Add `Server::Connection#closed?` to check connection is dead or not
|
60
60
|
* Remove `id_stream` argument from `Server::Connection#run` block
|
61
|
-
* From lumberjack limitation, this plugin launches one thread for each connection. You can mitigate this problem by `max_connections`.
|
61
|
+
* From lumberjack limitation, this plugin launches one thread for each connection. You can mitigate this problem by `max_connections`.
|
62
|
+
|
63
|
+
## Slide
|
64
|
+
|
65
|
+
Talk at Elasticsearch meetup #14: [Fluentd meets Beats](http://www.slideshare.net/repeatedly/fluentpluginbeats-at-elasticsearch-meetup-14)
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.1
|
@@ -15,6 +15,9 @@
|
|
15
15
|
# See the License for the specific language governing permissions and
|
16
16
|
# limitations under the License.
|
17
17
|
#
|
18
|
+
|
19
|
+
require 'fluent/input'
|
20
|
+
|
18
21
|
module Fluent
|
19
22
|
class BeatsInput < Input
|
20
23
|
Plugin.register_input('beats', self)
|
@@ -69,8 +72,6 @@ module Fluent
|
|
69
72
|
@thread.join
|
70
73
|
end
|
71
74
|
|
72
|
-
FILEBEAT_MESSAGE = 'message'
|
73
|
-
|
74
75
|
def run
|
75
76
|
until @lumberjack.closed?
|
76
77
|
conn = @lumberjack.accept
|
@@ -91,7 +92,7 @@ module Fluent
|
|
91
92
|
conn.run { |map|
|
92
93
|
tag = @metadata_as_tag ? map['@metadata']['beat'] : @tag
|
93
94
|
|
94
|
-
if map.has_key?('message') &&
|
95
|
+
if map.has_key?('message') && @format
|
95
96
|
message = map.delete('message')
|
96
97
|
@parser.parse(message) { |time, record|
|
97
98
|
record['@timestamp'] = map['@timestamp']
|
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.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Masahiro Nakagawa
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-08-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fluentd
|
@@ -123,7 +123,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
123
123
|
version: '0'
|
124
124
|
requirements: []
|
125
125
|
rubyforge_project:
|
126
|
-
rubygems_version: 2.
|
126
|
+
rubygems_version: 2.5.1
|
127
127
|
signing_key:
|
128
128
|
specification_version: 4
|
129
129
|
summary: Elastic beats plugin for Fluentd event collector
|