logstash-codec-sflow 1.2.0 → 1.2.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: c28971730da8f9f302c926868c06bdac25a0d9b0
4
- data.tar.gz: 6d114bd259a7194a9d61c8759c4c4bc2b400efce
3
+ metadata.gz: 307b3bbb49f77d52cbb9023618a96380643e2f63
4
+ data.tar.gz: d67f56b26b6536e8753ccef03dfd4d916e5744a5
5
5
  SHA512:
6
- metadata.gz: a6ef3af6d5a7f001997fa986c739eb0d2f23fb1857724ac4dbed38a211e69ca7f3518d778aed2e19d0e162a7c51695f02952d636bccf37bb4c22533e6221f0b7
7
- data.tar.gz: 36e2350656250450e8d3299062e299c1e959f30c13e08d1cde9ba96825be6fe919a7c9102a7d5f3286419abd7b70251a4faff639dfb1168e42aaab06976bde87
6
+ metadata.gz: 859b926b3d5ab6e1d4235b50181d0e7cc33f41da28043812b4e836df0efaadbf762032723d11016669ea941605475a4c46367f734b91e17adc51e7a2ec29521e
7
+ data.tar.gz: 5ab9bc2e21c51911cb0558cdd6520152ee53aeec58d3b20bd53396937fa6a83a180fd16fabdf7e5fb53a8ca1980855662e1ddf753339c66de6ddfef0c8f8d33c
data/CHANGELOG.md CHANGED
@@ -1,4 +1,5 @@
1
- ## 2.0.0
2
- - Plugins were updated to follow the new shutdown semantic, this mainly allows Logstash to instruct input plugins to terminate gracefully,
3
- instead of using Thread.raise on the plugins' threads. Ref: https://github.com/elastic/logstash/pull/3895
4
- - Dependency on logstash-core update to 2.0
1
+ # logstash-codec-sflow Changelog
2
+
3
+ ## Version 1.2.1 (2016-11-02)
4
+
5
+ * Add management of LAG counters: http://www.sflow.org/sflow_lag.txt
data/README.md CHANGED
@@ -13,6 +13,7 @@ For the (expanded) counter flow it is able to decode some records of type:
13
13
  - VLAN
14
14
  - Processor Information
15
15
  - HTTP
16
+ - LAG
16
17
 
17
18
  ## TO DO
18
19
  Currently this plugin does not manage all sflow counter and is not able to decode
@@ -127,3 +127,25 @@ class HttpCounters < BinData::Record
127
127
  uint32 :status_5XX_count
128
128
  uint32 :status_other_count
129
129
  end
130
+
131
+ # noinspection RubyResolve
132
+ class LagPortStats < BinData::Record
133
+ endian :big
134
+ sflow_mac_address :dot3adAggPortActorSystemID
135
+ skip :length => 2
136
+ sflow_mac_address :dot3adAggPortPartnerOperSystemID
137
+ skip :length => 2
138
+ uint32 :dot3adAggPortAttachedAggID
139
+ bit8 :dot3adAggPortActorAdminState
140
+ bit8 :dot3adAggPortActorOperState
141
+ bit8 :dot3adAggPortPartnerAdminState
142
+ bit8 :dot3adAggPortPartnerOperState
143
+ uint32 :dot3adAggPortStatsLACPDUsRx
144
+ uint32 :dot3adAggPortStatsMarkerPDUsRx
145
+ uint32 :dot3adAggPortStatsMarkerResponsePDUsRx
146
+ uint32 :dot3adAggPortStatsUnknownRx
147
+ uint32 :dot3adAggPortStatsIllegalRx
148
+ uint32 :dot3adAggPortStatsLACPDUsTx
149
+ uint32 :dot3adAggPortStatsMarkerPDUsTx
150
+ uint32 :dot3adAggPortStatsMarkerResponsePDUsTx
151
+ end
@@ -104,6 +104,7 @@ class ExpandedCounterSample < BinData::Record
104
104
  token_ring '0-3'
105
105
  hundred_base_vg '0-4'
106
106
  vlan '0-5'
107
+ lag_port_stats '0-7'
107
108
  processor_information '0-1001'
108
109
  http_counters '0-2201'
109
110
  skip :default, :length => :record_length
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'logstash-codec-sflow'
4
- s.version = '1.2.0'
4
+ s.version = '1.2.1'
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'
@@ -24,4 +24,9 @@ describe SFlow do
24
24
  payload = IO.read(File.join(File.dirname(__FILE__), "sflow_flow_sample_eth_vlan.dat"), :mode => "rb")
25
25
  SFlow.read(payload)
26
26
  end
27
+
28
+ it "should decode sflow with lag counters" do
29
+ payload = IO.read(File.join(File.dirname(__FILE__), "sflow_with_lag_counters.dat"), :mode => "rb")
30
+ SFlow.read(payload)
31
+ end
27
32
  end
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: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicolas Fraison
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-04 00:00:00.000000000 Z
11
+ date: 2016-11-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -118,6 +118,7 @@ files:
118
118
  - spec/codecs/sflow_flow_sample.dat
119
119
  - spec/codecs/sflow_flow_sample_eth_vlan.dat
120
120
  - spec/codecs/sflow_spec.rb
121
+ - spec/codecs/sflow_with_lag_counters.dat
121
122
  homepage: ''
122
123
  licenses:
123
124
  - Apache License (2.0)
@@ -156,3 +157,4 @@ test_files:
156
157
  - spec/codecs/sflow_flow_sample.dat
157
158
  - spec/codecs/sflow_flow_sample_eth_vlan.dat
158
159
  - spec/codecs/sflow_spec.rb
160
+ - spec/codecs/sflow_with_lag_counters.dat