logstash-codec-collectd 0.1.4 → 0.1.5
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 +4 -4
- data/lib/logstash/codecs/collectd.rb +5 -4
- data/logstash-codec-collectd.gemspec +2 -3
- data/vendor.json +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e66146fb50cf89cf0e14110fecd9dcb046d590f0
|
4
|
+
data.tar.gz: 8c7fb48c3499b9e1b637ee6002be1069cc68dfa9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dd772ab9dfc0a3b49d1c449667650f524f89a41974057d5b8005ee3a0ebf86d9edbc0bf4f5e28733c96c0e47b4e9519d9921cb153e962ea3bf6b66f8985256a2
|
7
|
+
data.tar.gz: a19bd0c9b4f47a12caafd4be6bf0d0ddde04cf68395eef1242834eaeae1d8e4e919d50acc0dd107616658bc5f495f3da6d9ca7df9fd714d4b30fdddc091a9abd
|
@@ -72,6 +72,7 @@ class LogStash::Codecs::Collectd < LogStash::Codecs::Base
|
|
72
72
|
PLUGIN_TYPE_FIELDS = {
|
73
73
|
'host' => true,
|
74
74
|
'@timestamp' => true,
|
75
|
+
'type_instance' => true,
|
75
76
|
}
|
76
77
|
|
77
78
|
COLLECTD_TYPE_FIELDS = {
|
@@ -117,18 +118,18 @@ class LogStash::Codecs::Collectd < LogStash::Codecs::Base
|
|
117
118
|
# collectd https://collectd.org/wiki/index.php/Plugin:Network[Network plugin]
|
118
119
|
config :security_level, :validate => [SECURITY_NONE, SECURITY_SIGN, SECURITY_ENCR],
|
119
120
|
:default => "None"
|
120
|
-
|
121
|
+
|
121
122
|
# What to do when a value in the event is `NaN` (Not a Number)
|
122
123
|
#
|
123
124
|
# - change_value (default): Change the `NaN` to the value of the nan_value option and add `nan_tag` as a tag
|
124
125
|
# - warn: Change the `NaN` to the value of the nan_value option, print a warning to the log and add `nan_tag` as a tag
|
125
126
|
# - drop: Drop the event containing the `NaN` (this only drops the single event, not the whole packet)
|
126
127
|
config :nan_handling, :validate => ['change_value','warn','drop'], :default => 'change_value'
|
127
|
-
|
128
|
+
|
128
129
|
# Only relevant when `nan_handeling` is set to `change_value`
|
129
130
|
# Change NaN to this configured value
|
130
131
|
config :nan_value, :validate => :number, :default => 0
|
131
|
-
|
132
|
+
|
132
133
|
# The tag to add to the event if a `NaN` value was found
|
133
134
|
# Set this to an empty string ('') if you don't want to tag
|
134
135
|
config :nan_tag, :validate => :string, :default => '_collectdNaN'
|
@@ -396,7 +397,7 @@ class LogStash::Codecs::Collectd < LogStash::Codecs::Base
|
|
396
397
|
length = ((payload.slice!(0) << 8) + payload.slice!(0)) - 4
|
397
398
|
# Validate that the part length is correct
|
398
399
|
raise(HeaderError) if length > payload.length
|
399
|
-
|
400
|
+
|
400
401
|
body = payload.slice!(0..length-1)
|
401
402
|
|
402
403
|
field = TYPEMAP[typenum]
|
@@ -1,9 +1,9 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
|
3
3
|
s.name = 'logstash-codec-collectd'
|
4
|
-
s.version = '0.1.
|
4
|
+
s.version = '0.1.5'
|
5
5
|
s.licenses = ['Apache License (2.0)']
|
6
|
-
s.summary = "Read events from the
|
6
|
+
s.summary = "Read events from the collectd binary protocol"
|
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"
|
8
8
|
s.authors = ["Elasticsearch"]
|
9
9
|
s.email = 'info@elasticsearch.com'
|
@@ -24,4 +24,3 @@ Gem::Specification.new do |s|
|
|
24
24
|
|
25
25
|
s.add_development_dependency 'logstash-devutils'
|
26
26
|
end
|
27
|
-
|
data/vendor.json
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-codec-collectd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Elasticsearch
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-02-
|
11
|
+
date: 2015-02-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: logstash
|
@@ -86,6 +86,6 @@ rubyforge_project:
|
|
86
86
|
rubygems_version: 2.1.9
|
87
87
|
signing_key:
|
88
88
|
specification_version: 4
|
89
|
-
summary: Read events from the
|
89
|
+
summary: Read events from the collectd binary protocol
|
90
90
|
test_files:
|
91
91
|
- spec/codecs/collectd_spec.rb
|