logstash-input-wmi 2.0.5-java → 3.0.0-java

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: ba2ce1c8132e67f94c53bfdaccf85ab08abe875d
4
- data.tar.gz: 1d64ce45e3526ab906f0db66e02b6716f526625d
3
+ metadata.gz: 8116557dbd856638d1b445273a4a8645f76ff75f
4
+ data.tar.gz: 0e3b45b28647e1f707908847a647d2312bf5c0a4
5
5
  SHA512:
6
- metadata.gz: eca7d56fa4f85fda1c8d9428fbf1932c21dd6a952572b1f33e430f46b330fd404a34f398637b54d4b058f5c1e17a397b84040ecf48efff9280e79f65eaed7162
7
- data.tar.gz: 9d460d51f6946310f9cc29ad0415297f07042026588c3ceacd0cb744b432f0dfb948b4a06c29d0d53da05adc31f3368e8e2e4acf63ed173a97a63eac8d7bf912
6
+ metadata.gz: 5dc059d2c4ec035ac6b6370f0e120d7d19172bcfa0588379d251a36348d409c4b96b10bda511666c1fb9dafb6faf4791e421bc20a4e52d00d398411464e2f2a7
7
+ data.tar.gz: a5450f609a9bd9f86372674c0dbca2f431cf96d83105403c011ad982f98b3b11a63a083a4e07738be5873557eea55d69eace774d02ca521df45637c7d7eaaca7
data/CHANGELOG.md CHANGED
@@ -1,7 +1,13 @@
1
- # 2.0.4
1
+ ## 3.0.0
2
+ - Relax constraints on the `logstash-core-plugin-api`
3
+ - Update plugin to the new event api
4
+
5
+ ## 2.0.4
2
6
  - 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
7
+
8
+ ## 2.0.3
4
9
  - New dependency requirements for logstash-core for the 5.0 release
10
+
5
11
  ## 2.0.0
6
12
  - Plugins were updated to follow the new shutdown semantic, this mainly allows Logstash to instruct input plugins to terminate gracefully,
7
13
  instead of using Thread.raise on the plugins' threads. Ref: https://github.com/elastic/logstash/pull/3895
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2012–2015 Elasticsearch <http://www.elastic.co>
1
+ Copyright (c) 2012–2016 Elasticsearch <http://www.elastic.co>
2
2
 
3
3
  Licensed under the Apache License, Version 2.0 (the "License");
4
4
  you may not use this file except in compliance with the License.
data/README.md CHANGED
@@ -1,7 +1,6 @@
1
1
  # Logstash Plugin
2
2
 
3
- [![Build
4
- Status](http://build-eu-00.elastic.co/view/LS%20Plugins/view/LS%20Inputs/job/logstash-plugin-input-wmi-unit/badge/icon)](http://build-eu-00.elastic.co/view/LS%20Plugins/view/LS%20Inputs/job/logstash-plugin-input-wmi-unit/)
3
+ [![Travis Build Status](https://travis-ci.org/logstash-plugins/logstash-input-wmi.svg)](https://travis-ci.org/logstash-plugins/logstash-input-wmi)
5
4
 
6
5
  This is a plugin for [Logstash](https://github.com/elastic/logstash).
7
6
 
@@ -56,7 +55,12 @@ gem "logstash-filter-awesome", :path => "/your/local/logstash-filter-awesome"
56
55
  ```
57
56
  - Install plugin
58
57
  ```sh
58
+ # Logstash 2.3 and higher
59
+ bin/logstash-plugin install --no-verify
60
+
61
+ # Prior to Logstash 2.3
59
62
  bin/plugin install --no-verify
63
+
60
64
  ```
61
65
  - Run Logstash with your plugin
62
66
  ```sh
@@ -74,7 +78,12 @@ gem build logstash-filter-awesome.gemspec
74
78
  ```
75
79
  - Install the plugin from the Logstash home
76
80
  ```sh
77
- bin/plugin install /your/local/plugin/logstash-filter-awesome.gem
81
+ # Logstash 2.3 and higher
82
+ bin/logstash-plugin install --no-verify
83
+
84
+ # Prior to Logstash 2.3
85
+ bin/plugin install --no-verify
86
+
78
87
  ```
79
88
  - Start Logstash and proceed to test the plugin
80
89
 
@@ -75,10 +75,10 @@ class LogStash::Inputs::WMI < LogStash::Inputs::Base
75
75
  @wmi.ExecQuery(@query).each do |wmiobj|
76
76
  # create a single event for all properties in the collection
77
77
  event = LogStash::Event.new
78
- event["host"] = @host
78
+ event.set("host", @host)
79
79
  decorate(event)
80
80
  wmiobj.Properties_.each do |prop|
81
- event[prop.name] = prop.value
81
+ event.set(prop.name, prop.value)
82
82
  end
83
83
  queue << event
84
84
  end
@@ -1,10 +1,9 @@
1
1
  Gem::Specification.new do |s|
2
-
3
2
  s.name = 'logstash-input-wmi'
4
- s.version = '2.0.5'
3
+ s.version = '3.0.0'
5
4
  s.licenses = ['Apache License (2.0)']
6
5
  s.summary = "Collect data from WMI query"
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"
6
+ 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"
8
7
  s.authors = ["Elastic"]
9
8
  s.email = 'info@elastic.co'
10
9
  s.homepage = "http://www.elastic.co/guide/en/logstash/current/index.html"
@@ -20,7 +19,7 @@ Gem::Specification.new do |s|
20
19
  s.metadata = { "logstash_plugin" => "true", "logstash_group" => "input" }
21
20
 
22
21
  # Gem dependencies
23
- s.add_runtime_dependency "logstash-core-plugin-api", "~> 1.0"
22
+ s.add_runtime_dependency "logstash-core-plugin-api", ">= 1.60", "<= 2.99"
24
23
 
25
24
  if RUBY_PLATFORM == 'java'
26
25
  s.platform = RUBY_PLATFORM
metadata CHANGED
@@ -1,58 +1,64 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-input-wmi
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.5
4
+ version: 3.0.0
5
5
  platform: java
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-29 00:00:00.000000000 Z
11
+ date: 2016-09-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: logstash-core-plugin-api
15
- version_requirements: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - ~>
18
- - !ruby/object:Gem::Version
19
- version: '1.0'
20
14
  requirement: !ruby/object:Gem::Requirement
21
15
  requirements:
22
- - - ~>
16
+ - - ">="
17
+ - !ruby/object:Gem::Version
18
+ version: '1.60'
19
+ - - "<="
23
20
  - !ruby/object:Gem::Version
24
- version: '1.0'
21
+ version: '2.99'
22
+ name: logstash-core-plugin-api
25
23
  prerelease: false
26
24
  type: :runtime
27
- - !ruby/object:Gem::Dependency
28
- name: jruby-win32ole
29
25
  version_requirements: !ruby/object:Gem::Requirement
30
26
  requirements:
31
- - - '>='
27
+ - - ">="
32
28
  - !ruby/object:Gem::Version
33
- version: '0'
29
+ version: '1.60'
30
+ - - "<="
31
+ - !ruby/object:Gem::Version
32
+ version: '2.99'
33
+ - !ruby/object:Gem::Dependency
34
34
  requirement: !ruby/object:Gem::Requirement
35
35
  requirements:
36
- - - '>='
36
+ - - ">="
37
37
  - !ruby/object:Gem::Version
38
38
  version: '0'
39
+ name: jruby-win32ole
39
40
  prerelease: false
40
41
  type: :runtime
41
- - !ruby/object:Gem::Dependency
42
- name: logstash-devutils
43
42
  version_requirements: !ruby/object:Gem::Requirement
44
43
  requirements:
45
- - - '>='
44
+ - - ">="
46
45
  - !ruby/object:Gem::Version
47
46
  version: '0'
47
+ - !ruby/object:Gem::Dependency
48
48
  requirement: !ruby/object:Gem::Requirement
49
49
  requirements:
50
- - - '>='
50
+ - - ">="
51
51
  - !ruby/object:Gem::Version
52
52
  version: '0'
53
+ name: logstash-devutils
53
54
  prerelease: false
54
55
  type: :development
55
- 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
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ version: '0'
61
+ 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
56
62
  email: info@elastic.co
57
63
  executables: []
58
64
  extensions: []
@@ -79,12 +85,12 @@ require_paths:
79
85
  - lib
80
86
  required_ruby_version: !ruby/object:Gem::Requirement
81
87
  requirements:
82
- - - '>='
88
+ - - ">="
83
89
  - !ruby/object:Gem::Version
84
90
  version: '0'
85
91
  required_rubygems_version: !ruby/object:Gem::Requirement
86
92
  requirements:
87
- - - '>='
93
+ - - ">="
88
94
  - !ruby/object:Gem::Version
89
95
  version: '0'
90
96
  requirements: []