logstash-input-exec 3.1.1 → 3.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/logstash/inputs/exec.rb +2 -2
- data/logstash-input-exec.gemspec +1 -1
- data/spec/inputs/exec_spec.rb +2 -2
- 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: f97f89c202d17d0b430215071db9de439b85623d
|
4
|
+
data.tar.gz: 60cd3e1341b6a36ef2f0811b2f1bec79a4efc806
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fbf9cf15ce2a8866d34fd3c8daa7d5bc9a2ca8a83709eb6ef118361b33f885a4674be626974ce23582d0de5501f3c991fcba59945d6c6b5d3081e563727a4273
|
7
|
+
data.tar.gz: 8aea74ab4a435e8e14ed5fc27cb2443d425316694805c3411e373372a26c785eadabe95b48417e92e4dab6c189d24affc3478fcfef59dcfc17f644a3302da15a
|
data/CHANGELOG.md
CHANGED
data/lib/logstash/inputs/exec.rb
CHANGED
@@ -40,7 +40,7 @@ class LogStash::Inputs::Exec < LogStash::Inputs::Base
|
|
40
40
|
execute(@command, queue)
|
41
41
|
duration = Time.now - start
|
42
42
|
|
43
|
-
@logger.
|
43
|
+
@logger.debug? && @logger.debug("Command completed", :command => @command, :duration => duration)
|
44
44
|
|
45
45
|
wait_until_end_of_interval(duration)
|
46
46
|
end
|
@@ -71,7 +71,7 @@ class LogStash::Inputs::Exec < LogStash::Inputs::Base
|
|
71
71
|
# @param [String] A command string
|
72
72
|
# @param [Array or Queue] A queue to append events to
|
73
73
|
def execute(command, queue)
|
74
|
-
@logger.
|
74
|
+
@logger.debug? && @logger.debug("Running exec", :command => command)
|
75
75
|
begin
|
76
76
|
@io = IO.popen(command)
|
77
77
|
@codec.decode(@io.read) do |event|
|
data/logstash-input-exec.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
|
3
3
|
s.name = 'logstash-input-exec'
|
4
|
-
s.version = '3.1.
|
4
|
+
s.version = '3.1.2'
|
5
5
|
s.licenses = ['Apache License (2.0)']
|
6
6
|
s.summary = "Run command line tools and capture the whole output as an event."
|
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/logstash-plugin install gemname. This gem is not a stand-alone program"
|
data/spec/inputs/exec_spec.rb
CHANGED
@@ -15,7 +15,8 @@ describe LogStash::Inputs::Exec do
|
|
15
15
|
let(:queue) { [] }
|
16
16
|
let(:loggr) { double('loggr') }
|
17
17
|
|
18
|
-
before do
|
18
|
+
before :each do
|
19
|
+
expect(LogStash::Inputs::Exec).to receive(:logger).and_return(loggr).exactly(7).times
|
19
20
|
allow(loggr).to receive(:info)
|
20
21
|
allow(loggr).to receive(:info?)
|
21
22
|
allow(loggr).to receive(:warn)
|
@@ -25,7 +26,6 @@ describe LogStash::Inputs::Exec do
|
|
25
26
|
end
|
26
27
|
|
27
28
|
it "enqueues some events" do
|
28
|
-
input.logger = loggr
|
29
29
|
input.register
|
30
30
|
expect(loggr).not_to receive(:error)
|
31
31
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-input-exec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Elastic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-09-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
@@ -110,7 +110,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
110
110
|
version: '0'
|
111
111
|
requirements: []
|
112
112
|
rubyforge_project:
|
113
|
-
rubygems_version: 2.
|
113
|
+
rubygems_version: 2.4.8
|
114
114
|
signing_key:
|
115
115
|
specification_version: 4
|
116
116
|
summary: Run command line tools and capture the whole output as an event.
|