fluent-plugin-netflow 0.0.3 → 0.0.4

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: 007a11f7977c3cdc2b00f34f4d2faf064ce7469a
4
- data.tar.gz: b8f32acc1788057a303fa6d2d73a32afc37b10fb
3
+ metadata.gz: 80cb41c0e0c918bd556db7f17a810789d67565d9
4
+ data.tar.gz: b80568cec5c56ea94091281126c8ba6dc77aaccc
5
5
  SHA512:
6
- metadata.gz: 43b360bfaf49486f72d960429528f248dfc5b5ae0b7fe2c24bbcf9dc8afa5cdab2c150767daf6a20e4f675e0a270fc1e508b59037d0232ee5b5e1634069be946
7
- data.tar.gz: 3aafdd003478c5e03f90b0869c3b0102caeaf50e2018ec9eaab22735c9611c1474209e86b8de137a87f8cf9d20cbe7835016c9b893748a8962e8942b3bf97a60
6
+ metadata.gz: 2df55c1357c007c7607a61bfd298fca5c8d974298347ba10ad652c9ea9859a593cc9dba4240e2adb80402dc2c9c2ad731f42aedf83069d0fdc8ba670da587578
7
+ data.tar.gz: 02ddac47f6696fae81970ae75252a8607392cf8df5524da670a209c4b4ff399733c29376efea866d6ecc14384b3f3587a81156789b43fbb9cc24c207530f8115
data/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  Accept Netflow logs.
4
4
 
5
+ Netflow parser is based on [Logstash's netflow codes](https://github.com/elasticsearch/logstash/blob/master/lib/logstash/codecs/netflow.rb).
6
+
5
7
  ## Installation
6
8
 
7
9
  Use RubyGems:
@@ -25,5 +27,6 @@ Use RubyGems:
25
27
 
26
28
  ## TODO
27
29
 
28
- - Support TCP protocol
29
- - Use Fluentd feature instead of own handlers
30
+ - Support TCP protocol? TCP is needed?
31
+ - Use Fluentd feature instead of own handlers
32
+ - Need another maintainer who uses Netflow in production!
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.3
1
+ 0.0.4
@@ -164,10 +164,10 @@
164
164
  - :dst_tos
165
165
  56:
166
166
  - :mac_addr
167
- - :in_src_max
167
+ - :in_src_mac
168
168
  57:
169
169
  - :mac_addr
170
- - :out_dst_max
170
+ - :out_dst_mac
171
171
  58:
172
172
  - :uint16
173
173
  - :src_vlan
@@ -278,7 +278,7 @@ module Fluent
278
278
  end
279
279
 
280
280
  def get
281
- self.bytes.collect { |byte| byte.to_s(16) }.join(":")
281
+ self.bytes.collect { |byte| byte.value.to_s(16).rjust(2,'0') }.join(":")
282
282
  end
283
283
  end
284
284
 
@@ -443,6 +443,6 @@ module Fluent
443
443
  end
444
444
  end
445
445
 
446
- register_template('netflow', self)
446
+ register_template('netflow', Proc.new { NetflowParser.new })
447
447
  end
448
448
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-netflow
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Masahiro Nakagawa
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-02 00:00:00.000000000 Z
11
+ date: 2014-07-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fluentd