fluent-plugin-beats 0.1.0 → 0.1.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: 22b370cd6030f188fc607586558a34341419735b
4
- data.tar.gz: c1c732fbb50f60bcc503d413a0cc40a9e5a3df08
3
+ metadata.gz: 567f81b574dfab5403a688381d9f1de8db3a3401
4
+ data.tar.gz: 0fb38a58cc230acfdfb722279f204e24cd30a74a
5
5
  SHA512:
6
- metadata.gz: 2f103a1cecb9002a90978920cef9ee907e0f857cabcfe7e5abc305a7b6174a6520e834333cc13cc00b38a9026bfb52497d94f44bfcd908ae38eed0a03d8b2e3a
7
- data.tar.gz: d872ee9de6e8b2dc1eb7c6b538664357dbf5c7db5113b3782b7a8ca33bdfc817991de0d068620d2238ac4f6bc647f9b75815b93d678d82e0b10531e72f9d5c82
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. Available values are `filebeat`, `packetbeat` and `topbeat`.
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.0
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') && @format
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.0
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: 2015-12-17 00:00:00.000000000 Z
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.2.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