logstash-output-exec 2.0.2 → 2.0.4

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: ad4b7537c51a669924e3152211b9c6b6d9816580
4
- data.tar.gz: 13f2c3209b56eb0015333b147a4fa7cc7c05bda5
3
+ metadata.gz: 1f7b33fee44ee6c1ab390d0ce6c187ba1a21da76
4
+ data.tar.gz: 87e2adfacfc6c4efe76cebe0ea3c2468a018f95d
5
5
  SHA512:
6
- metadata.gz: e1770976c06d02f976a4027b76aef354bbac0780c1f8edf079b1605c2978b9d9db3cfdd2d237de1de4d901a907a07d62425b8cea1bd78f9085bef8874a84ac4b
7
- data.tar.gz: 6b29531ed784da2151548de99c9a6f6a2e4a065daaa9e01bcab07eddd4005bca936037894ff262e6741e5058a62fd156a49174d378a0c5b53bf33365f53f9f5f
6
+ metadata.gz: 452d1f513e7d9bb9fc5570d34a332eff130ce1b0ff8ec25a6fd7593a27c6e985898bb9956fef5d21bb247be9888d89aa626bac9bf6ebf1c48008907073325ca4
7
+ data.tar.gz: ad6e9e5ac6d896b55b45eb3a7b8588671442b16a444f9f4c9476e638ac17c7be95545621c75ecbeec571a363fe0b64ca76d9275aad2a81baf6d755d13a592274
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 2.0.4
2
+ - Depend on logstash-core-plugin-api instead of logstash-core, removing the need to mass update plugins on major releases of logstash
3
+ # 2.0.3
4
+ - New dependency requirements for logstash-core for the 5.0 release
1
5
  ## 2.0.0
2
6
  - Plugins were updated to follow the new shutdown semantic, this mainly allows Logstash to instruct input plugins to terminate gracefully,
3
7
  instead of using Thread.raise on the plugins' threads. Ref: https://github.com/elastic/logstash/pull/3895
data/CONTRIBUTORS CHANGED
@@ -1,6 +1,9 @@
1
1
  The following is a list of people who have contributed ideas, code, bug
2
2
  reports, or in general have helped logstash along its way.
3
3
 
4
+ Maintainers:
5
+ * Magnus Bäck (magnusbaeck)
6
+
4
7
  Contributors:
5
8
  * Alexander Fortin (shaftoe)
6
9
  * Jordan Sissel (jordansissel)
data/README.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Logstash Plugin
2
2
 
3
+ [![Build
4
+ Status](http://build-eu-00.elastic.co/view/LS%20Plugins/view/LS%20Outputs/job/logstash-plugin-output-exec-unit/badge/icon)](http://build-eu-00.elastic.co/view/LS%20Plugins/view/LS%20Outputs/job/logstash-plugin-output-exec-unit/)
5
+
3
6
  This is a plugin for [Logstash](https://github.com/elastic/logstash).
4
7
 
5
8
  It is fully free and fully open source. The license is Apache 2.0, meaning you are pretty much free to use it however you want in whatever way.
@@ -2,25 +2,36 @@
2
2
  require "logstash/namespace"
3
3
  require "logstash/outputs/base"
4
4
 
5
- # This output will run a command for any matching event.
6
- # Example:
5
+ # The exec output will run a command for each event received. Ruby's
6
+ # `system()` function will be used, i.e. the command string will
7
+ # be passed to a shell. You can use `%{name}` and other dynamic strings
8
+ # in the command to pass select fields from the event to the child
9
+ # process. Example:
7
10
  # [source,ruby]
8
11
  # output {
9
- # exec {
10
- # type => abuse
11
- # command => "iptables -A INPUT -s %{clientip} -j DROP"
12
+ # if [type] == "abuse" {
13
+ # exec {
14
+ # command => "iptables -A INPUT -s %{clientip} -j DROP"
15
+ # }
12
16
  # }
13
17
  # }
14
18
  #
15
- # Run subprocesses via system ruby function
19
+ # WARNING: If you want it non-blocking you should use `&` or `dtach`
20
+ # or other such techniques. There is no timeout for the commands being
21
+ # run so misbehaving commands could otherwise stall the Logstash
22
+ # pipeline indefinitely.
16
23
  #
17
- # WARNING: if you want it non-blocking you should use & or dtach or other such
18
- # techniques
24
+ # WARNING: Exercise great caution with `%{name}` field placeholders.
25
+ # The contents of the field will be included verbatim without any
26
+ # sanitization, i.e. any shell metacharacters from the field values
27
+ # will be passed straight to the shell.
19
28
  class LogStash::Outputs::Exec < LogStash::Outputs::Base
20
29
 
21
30
  config_name "exec"
22
31
 
23
- # Command line to execute via subprocess. Use dtach or screen to make it non blocking
32
+ # Command line to execute via subprocess. Use `dtach` or `screen` to
33
+ # make it non blocking. This value can include `%{name}` and other
34
+ # dynamic strings.
24
35
  config :command, :validate => :string, :required => true
25
36
 
26
37
  public
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'logstash-output-exec'
4
- s.version = '2.0.2'
4
+ s.version = '2.0.4'
5
5
  s.licenses = ['Apache License (2.0)']
6
6
  s.summary = "This output will run a command for any matching 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/plugin install gemname. This gem is not a stand-alone program"
@@ -20,7 +20,7 @@ Gem::Specification.new do |s|
20
20
  s.metadata = { "logstash_plugin" => "true", "logstash_group" => "output" }
21
21
 
22
22
  # Gem dependencies
23
- s.add_runtime_dependency "logstash-core", ">= 2.0.0.beta2", "< 3.0.0"
23
+ s.add_runtime_dependency "logstash-core-plugin-api", "~> 1.0"
24
24
 
25
25
  s.add_development_dependency 'logstash-devutils'
26
26
  end
metadata CHANGED
@@ -1,39 +1,33 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-output-exec
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-14 00:00:00.000000000 Z
11
+ date: 2016-03-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
15
15
  requirements:
16
- - - '>='
16
+ - - "~>"
17
17
  - !ruby/object:Gem::Version
18
- version: 2.0.0.beta2
19
- - - <
20
- - !ruby/object:Gem::Version
21
- version: 3.0.0
22
- name: logstash-core
18
+ version: '1.0'
19
+ name: logstash-core-plugin-api
23
20
  prerelease: false
24
21
  type: :runtime
25
22
  version_requirements: !ruby/object:Gem::Requirement
26
23
  requirements:
27
- - - '>='
28
- - !ruby/object:Gem::Version
29
- version: 2.0.0.beta2
30
- - - <
24
+ - - "~>"
31
25
  - !ruby/object:Gem::Version
32
- version: 3.0.0
26
+ version: '1.0'
33
27
  - !ruby/object:Gem::Dependency
34
28
  requirement: !ruby/object:Gem::Requirement
35
29
  requirements:
36
- - - '>='
30
+ - - ">="
37
31
  - !ruby/object:Gem::Version
38
32
  version: '0'
39
33
  name: logstash-devutils
@@ -41,7 +35,7 @@ dependencies:
41
35
  type: :development
42
36
  version_requirements: !ruby/object:Gem::Requirement
43
37
  requirements:
44
- - - '>='
38
+ - - ">="
45
39
  - !ruby/object:Gem::Version
46
40
  version: '0'
47
41
  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
@@ -71,12 +65,12 @@ require_paths:
71
65
  - lib
72
66
  required_ruby_version: !ruby/object:Gem::Requirement
73
67
  requirements:
74
- - - '>='
68
+ - - ">="
75
69
  - !ruby/object:Gem::Version
76
70
  version: '0'
77
71
  required_rubygems_version: !ruby/object:Gem::Requirement
78
72
  requirements:
79
- - - '>='
73
+ - - ">="
80
74
  - !ruby/object:Gem::Version
81
75
  version: '0'
82
76
  requirements: []