logstash-input-exec 3.1.2 → 3.1.3

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: f97f89c202d17d0b430215071db9de439b85623d
4
- data.tar.gz: 60cd3e1341b6a36ef2f0811b2f1bec79a4efc806
3
+ metadata.gz: 295ced24ebf9dc46c8774c9040486eb35886857e
4
+ data.tar.gz: 325faae15d5cc3433ad2190065d2f79911aad638
5
5
  SHA512:
6
- metadata.gz: fbf9cf15ce2a8866d34fd3c8daa7d5bc9a2ca8a83709eb6ef118361b33f885a4674be626974ce23582d0de5501f3c991fcba59945d6c6b5d3081e563727a4273
7
- data.tar.gz: 8aea74ab4a435e8e14ed5fc27cb2443d425316694805c3411e373372a26c785eadabe95b48417e92e4dab6c189d24affc3478fcfef59dcfc17f644a3302da15a
6
+ metadata.gz: c420f94fad443175a464aba1bb93e55a085a62ed4fafb675cdd61d2bede2a50b53886404cb94d7e0ee316748d5c525ec305c06d2930f57cc80971bc962774fe3
7
+ data.tar.gz: eddd9e689a7fe51d715f5417324cd3ff9984573d791004d6a11870ec2da497d1f2c70419075e9e2e544d0856d96539b4334e01a0a85ce5ab687cf5d07dd305b1
data/Gemfile CHANGED
@@ -1,4 +1,11 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- # Specify your gem's dependencies in logstash-mass_effect.gemspec
4
3
  gemspec
4
+
5
+ logstash_path = ENV["LOGSTASH_PATH"] || "../../logstash"
6
+ use_logstash_source = ENV["LOGSTASH_SOURCE"] && ENV["LOGSTASH_SOURCE"].to_s == "1"
7
+
8
+ if Dir.exist?(logstash_path) && use_logstash_source
9
+ gem 'logstash-core', :path => "#{logstash_path}/logstash-core"
10
+ gem 'logstash-core-plugin-api', :path => "#{logstash_path}/logstash-core-plugin-api"
11
+ end
@@ -0,0 +1,69 @@
1
+ :plugin: exec
2
+ :type: input
3
+
4
+ ///////////////////////////////////////////
5
+ START - GENERATED VARIABLES, DO NOT EDIT!
6
+ ///////////////////////////////////////////
7
+ :version: %VERSION%
8
+ :release_date: %RELEASE_DATE%
9
+ :changelog_url: %CHANGELOG_URL%
10
+ :include_path: ../../../../logstash/docs/include
11
+ ///////////////////////////////////////////
12
+ END - GENERATED VARIABLES, DO NOT EDIT!
13
+ ///////////////////////////////////////////
14
+
15
+ [id="plugins-{type}-{plugin}"]
16
+
17
+ === Exec input plugin
18
+
19
+ include::{include_path}/plugin_header.asciidoc[]
20
+
21
+ ==== Description
22
+
23
+ Periodically run a shell command and capture the whole output as an event.
24
+
25
+ Notes:
26
+
27
+ * The `command` field of this event will be the command run.
28
+ * The `message` field of this event will be the entire stdout of the command.
29
+
30
+
31
+ [id="plugins-{type}s-{plugin}-options"]
32
+ ==== Exec Input Configuration Options
33
+
34
+ This plugin supports the following configuration options plus the <<plugins-{type}s-{plugin}-common-options>> described later.
35
+
36
+ [cols="<,<,<",options="header",]
37
+ |=======================================================================
38
+ |Setting |Input type|Required
39
+ | <<plugins-{type}s-{plugin}-command>> |<<string,string>>|Yes
40
+ | <<plugins-{type}s-{plugin}-interval>> |<<number,number>>|Yes
41
+ |=======================================================================
42
+
43
+ Also see <<plugins-{type}s-{plugin}-common-options>> for a list of options supported by all
44
+ input plugins.
45
+
46
+ &nbsp;
47
+
48
+ [id="plugins-{type}s-{plugin}-command"]
49
+ ===== `command`
50
+
51
+ * This is a required setting.
52
+ * Value type is <<string,string>>
53
+ * There is no default value for this setting.
54
+
55
+ Command to run. For example, `uptime`
56
+
57
+ [id="plugins-{type}s-{plugin}-interval"]
58
+ ===== `interval`
59
+
60
+ * This is a required setting.
61
+ * Value type is <<number,number>>
62
+ * There is no default value for this setting.
63
+
64
+ Interval to run the command. Value is in seconds.
65
+
66
+
67
+
68
+ [id="plugins-{type}s-{plugin}-common-options"]
69
+ include::{include_path}/{type}.asciidoc[]
@@ -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.2'
4
+ s.version = '3.1.3'
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"
@@ -11,7 +11,7 @@ Gem::Specification.new do |s|
11
11
  s.require_paths = ["lib"]
12
12
 
13
13
  # Files
14
- s.files = Dir['lib/**/*','spec/**/*','vendor/**/*','*.gemspec','*.md','CONTRIBUTORS','Gemfile','LICENSE','NOTICE.TXT']
14
+ s.files = Dir["lib/**/*","spec/**/*","*.gemspec","*.md","CONTRIBUTORS","Gemfile","LICENSE","NOTICE.TXT", "vendor/jar-dependencies/**/*.jar", "vendor/jar-dependencies/**/*.rb", "VERSION", "docs/**/*"]
15
15
 
16
16
  # Tests
17
17
  s.test_files = s.files.grep(%r{^(test|spec|features)/})
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.2
4
+ version: 3.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-09-15 00:00:00.000000000 Z
11
+ date: 2017-06-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -84,6 +84,7 @@ files:
84
84
  - LICENSE
85
85
  - NOTICE.TXT
86
86
  - README.md
87
+ - docs/index.asciidoc
87
88
  - lib/logstash/inputs/exec.rb
88
89
  - logstash-input-exec.gemspec
89
90
  - spec/inputs/exec_spec.rb