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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 90fadf15e3cf1456fc015fd9045370186d1112a9
4
- data.tar.gz: 369ded263493fe125c70953762f8157c06657cb6
3
+ metadata.gz: e66146fb50cf89cf0e14110fecd9dcb046d590f0
4
+ data.tar.gz: 8c7fb48c3499b9e1b637ee6002be1069cc68dfa9
5
5
  SHA512:
6
- metadata.gz: 2ef06b55b58425e2737aa75c99ba94ff29734b0542ba9fa792c69ef6dfc60cb7ce877d42bf1aedc33b87eb5ed44abbf348b496915647d617963ffc9704e23253
7
- data.tar.gz: e0911dddbc7114457ce009f61ca37f04d1c2f901fe29bc20d888e50f0a99bd7503fd6265d2325af6dbed0bca31523f096db65cc9590b9e29cf0edd30e1027c35
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'
4
+ s.version = '0.1.5'
5
5
  s.licenses = ['Apache License (2.0)']
6
- s.summary = "Read events from the connectd binary protocol"
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
@@ -1,5 +1,5 @@
1
1
  [{
2
2
  "sha1": "a90fe6cc53b76b7bdd56dc57950d90787cb9c96e",
3
- "url": "https://collectd.org/files/collectd-5.4.0.tar.gz",
3
+ "url": "http://collectd.org/files/collectd-5.4.0.tar.gz",
4
4
  "files": [ "/src/types.db" ]
5
5
  }]
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
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-02 00:00:00.000000000 Z
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 connectd binary protocol
89
+ summary: Read events from the collectd binary protocol
90
90
  test_files:
91
91
  - spec/codecs/collectd_spec.rb