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 +4 -4
- data/CHANGELOG.md +5 -4
- data/README.md +1 -0
- data/lib/logstash/codecs/sflow/counter_record.rb +22 -0
- data/lib/logstash/codecs/sflow/sample.rb +1 -0
- data/logstash-codec-sflow.gemspec +1 -1
- data/spec/codecs/sflow_spec.rb +5 -0
- data/spec/codecs/sflow_with_lag_counters.dat +0 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 307b3bbb49f77d52cbb9023618a96380643e2f63
|
4
|
+
data.tar.gz: d67f56b26b6536e8753ccef03dfd4d916e5744a5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 859b926b3d5ab6e1d4235b50181d0e7cc33f41da28043812b4e836df0efaadbf762032723d11016669ea941605475a4c46367f734b91e17adc51e7a2ec29521e
|
7
|
+
data.tar.gz: 5ab9bc2e21c51911cb0558cdd6520152ee53aeec58d3b20bd53396937fa6a83a180fd16fabdf7e5fb53a8ca1980855662e1ddf753339c66de6ddfef0c8f8d33c
|
data/CHANGELOG.md
CHANGED
@@ -1,4 +1,5 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
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
@@ -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
|
@@ -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.
|
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'
|
data/spec/codecs/sflow_spec.rb
CHANGED
@@ -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
|
Binary file
|
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.
|
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-
|
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
|