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 +4 -4
- data/lib/logstash/inputs/proc.rb +6 -1
- data/logstash-input-proc.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 82b26d3d77d5fb7d7b012220f7017cf532d8e5d8
|
4
|
+
data.tar.gz: a20b972e5d8b5835121506206722cf5f450d6120
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb730eadf7e7f71af7bbd2f629b58ac800847fb5a1eede309c48d9c384bbc3769ac589bf8c7498b2d694cbd9f2c5211ce11cd96a94bcca05e3793cdd25593473
|
7
|
+
data.tar.gz: 025480a4e1d6217c152c29f6eaea23aad2db37aa9f443e7936a62a5d3af50ae2919f54c9785a496925e69ad94a173c0a89ea549888d98884f145721b1166111f
|
data/lib/logstash/inputs/proc.rb
CHANGED
@@ -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
|
-
|
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.
|
data/logstash-input-proc.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'logstash-input-proc'
|
3
|
-
s.version = '0.3.
|
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.
|
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-
|
11
|
+
date: 2015-09-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: logstash-core
|