logstash-codec-mtrraw 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/logstash/codecs/mtrraw.rb +1 -0
- data/logstash-codec-mtrraw.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 042436748e18b358b2156ce53bfc46466fd49c87
|
4
|
+
data.tar.gz: dff26b8f507c5e3697d7f18e19968f123b1be32d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e0aa09fc917b7558e5f6784933983fe8a5464ad207fe59f136c0210b20bd8a48811da51fd8ac285cc267a64daf843678a13a0c100d2897818b88dc76d8fbef6f
|
7
|
+
data.tar.gz: 09e0db67f146e7d4ed0467cf3594bdb2903a5c962c232f86cc594d127272639100c1dfea64b45630f0b5c6ba9dafe2b966ed496ccd7cd90fa3b85a249907b86e
|
@@ -89,6 +89,7 @@ class LogStash::Codecs::Mtrraw < LogStash::Codecs::Base
|
|
89
89
|
avgloss = hops.inject(0) {|loss,each| loss += each[:pingloss]} / path.size
|
90
90
|
avgrtt = hops.inject(0.0) {|rtt,each| rtt += each[:avgrtt]} / path.size
|
91
91
|
tracedata = { "id" => id,
|
92
|
+
"origin" => origin,
|
92
93
|
"target" => target,
|
93
94
|
"message" => data ,
|
94
95
|
"hops" => hops,
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'logstash-codec-mtrraw'
|
3
|
-
s.version = '0.2.
|
3
|
+
s.version = '0.2.1'
|
4
4
|
s.licenses = ['Apache License (2.0)']
|
5
5
|
s.summary = 'Converts optionally overloaded mtr --raw data to an event'
|
6
6
|
s.description = 'Turn mtr --raw events with optional overloading into logstash events. see docs'
|