logstash-input-proc 0.3.0 → 0.3.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: 1cdbd16b4254917f2335715332ec00c12430ca3a
4
- data.tar.gz: fbcdf0c2c1fa195955276d7f8843e18d0452a10c
3
+ metadata.gz: 82b26d3d77d5fb7d7b012220f7017cf532d8e5d8
4
+ data.tar.gz: a20b972e5d8b5835121506206722cf5f450d6120
5
5
  SHA512:
6
- metadata.gz: 4aea789af59efe887a727e54199e221ce652140af439b4ca1b94220d9b85011de2d3ca38b20df42eee65696a3006d7aeb5e4a8d6672835ba47982d13036d34f1
7
- data.tar.gz: 4fd5d300fb50b0498d1ddf4ab4edccf93ede4d3830a5c10c6c48222b34e02fb762e1135de3a948f8b2400909054ddf3e6afd2124b8945db8fb87930ff57d9d15
6
+ metadata.gz: eb730eadf7e7f71af7bbd2f629b58ac800847fb5a1eede309c48d9c384bbc3769ac589bf8c7498b2d694cbd9f2c5211ce11cd96a94bcca05e3793cdd25593473
7
+ data.tar.gz: 025480a4e1d6217c152c29f6eaea23aad2db37aa9f443e7936a62a5d3af50ae2919f54c9785a496925e69ad94a173c0a89ea549888d98884f145721b1166111f
@@ -133,7 +133,12 @@ def readPidStats(queue)
133
133
  process["environ"] = Hash.new
134
134
  IO.read("/proc/#{file}/environ").split("\0").each{ |str|
135
135
  key, value = str.split('=')
136
- process["environ"][key] = value
136
+ if ( ! key.nil? || ! key.empty?)
137
+ if ( value.nil? )
138
+ value =""
139
+ end
140
+ process["environ"][key] = value
141
+ end
137
142
  }
138
143
  rescue Errno::EACCES, Errno::ESRCH, Errno::ENOENT
139
144
  # Ignore and move on.
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-input-proc'
3
- s.version = '0.3.0'
3
+ s.version = '0.3.1'
4
4
  s.licenses = ['Apache License (2.0)']
5
5
  s.summary = "This plugin is for reading the /proc of a linux filesystem"
6
6
  s.description = "Plugin is used with logstash"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-input-proc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Edward Perry
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-30 00:00:00.000000000 Z
11
+ date: 2015-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: logstash-core