logstash-codec-sflow 0.8.0 → 0.9.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 777103af0e2e6781f0f898e676d4115b218256ed
4
- data.tar.gz: 807d579c592cd093afecdaa54ac591468030e4ae
3
+ metadata.gz: 0dd6c6453a6f16c8f7526f8e210f9c7e6a9de5b3
4
+ data.tar.gz: 51951483cfd88c3c7a3a310e2c1a4fd064259656
5
5
  SHA512:
6
- metadata.gz: 0b2460db2ea2d55506fd30ac0e240c52681fa718e073b3f691759aa6ac32c5d89a0991a272cddbffbce957855d93f04996034d58df20cc6bc7d4073ff8d8ad0c
7
- data.tar.gz: 8c11363eb68c6959b29241f911c4827e1e3cde18ae1a9c0e0fd0f7c2a12418f6d4601fa264712acbf11a645e917f92cbed17515ee5a9ee3d054506bc5d7a5c78
6
+ metadata.gz: f3b2675a5d8f30c131c94751e294723939cacba36b30f008b4a6cc5328f285043076e13298475ceb2e26b4ff7919f66ae3448ed62a877bcf081d517cd4028418
7
+ data.tar.gz: 3e6510c59a4939d7079f50960657dba71629833ab4f12b37247c9f2af32095ca896fc3db4429b09f0bd295bb142a255e2b0b2b2f6e8c8acb9c68e656f6c245e9
data/README.md CHANGED
@@ -1,6 +1,17 @@
1
1
  # Logstash Codec SFlow Plugin
2
2
  ## Description
3
3
  Logstash codec plugin to decode sflow codec
4
+ This codec manage flow sample and counter flow.
5
+
6
+ For the flow sample it is able to decode Ethernet, IPv4, UDP and TCP header
7
+
8
+ For the counter flow it is able to decode some records of type:
9
+ - Generic Interface
10
+ - Ethernet Interface
11
+ - VLAN
12
+ - Processor Information
13
+ - HTTP
14
+
4
15
 
5
16
  [![Build
6
17
  Status](http://build-eu-00.elastic.co/view/LS%20Plugins/view/LS%20Codecs/job/logstash-plugin-codec-example-unit/badge/icon)](http://build-eu-00.elastic.co/view/LS%20Plugins/view/LS%20Codecs/job/logstash-plugin-codec-example-unit/)
@@ -95,6 +95,8 @@ class LogStash::Codecs::Sflow < LogStash::Codecs::Base
95
95
  if event.include?('frame_length') and event.include?('sampling_rate')
96
96
  event["frame_length_times_sampling_rate"] = event['frame_length'].to_i * event['sampling_rate'].to_i
97
97
  end
98
+
99
+ event["sflow_type"] = 'sample'
98
100
  events.push(event)
99
101
 
100
102
  #treat counter flow
@@ -111,6 +113,7 @@ class LogStash::Codecs::Sflow < LogStash::Codecs::Base
111
113
 
112
114
  common_sflow(event, decoded, sample, record)
113
115
 
116
+ event["sflow_type"] = 'counter'
114
117
  events.push(event)
115
118
  end
116
119
  end
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'logstash-codec-sflow'
4
- s.version = '0.8.0'
4
+ s.version = '0.9.0'
5
5
  s.licenses = ['Apache License (2.0)']
6
6
  s.summary = "The sflow codec is for decoding SFlow v5 flows."
7
7
  s.description = "This gem is a logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/plugin install gemname. This gem is not a stand-alone program"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-codec-sflow
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicolas Fraison
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-21 00:00:00.000000000 Z
11
+ date: 2015-12-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement