logstash-input-wmi 3.0.0-java → 3.0.1-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +10 -1
- data/docs/index.asciidoc +119 -0
- data/logstash-input-wmi.gemspec +2 -2
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ab18d3c9d6972c10dc64c3565e04a80ed37a2cff
|
4
|
+
data.tar.gz: 0e1c7836d15674759f70730e6a4c79843969dfc4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8b20a932eb84b5779c4864c523b1ce128e88cf74807d823e8b4ac01beabe14e378cbf778966cd91a8074dbce01d96e213aa362f8be57b89846c4a0e690455c4c
|
7
|
+
data.tar.gz: 353911ea253ad093685b6666032c665021bcf0070c4ee4d3e76d7933658b87b7d157f3f24cf8a4c20ba78280c58799c958b7a79119bca07e93d5f416618ec5de
|
data/Gemfile
CHANGED
@@ -1,2 +1,11 @@
|
|
1
1
|
source 'https://rubygems.org'
|
2
|
-
|
2
|
+
|
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
|
data/docs/index.asciidoc
ADDED
@@ -0,0 +1,119 @@
|
|
1
|
+
:plugin: wmi
|
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
|
+
=== Wmi input plugin
|
18
|
+
|
19
|
+
include::{include_path}/plugin_header.asciidoc[]
|
20
|
+
|
21
|
+
==== Description
|
22
|
+
|
23
|
+
Collect data from WMI query
|
24
|
+
|
25
|
+
This is useful for collecting performance metrics and other data
|
26
|
+
which is accessible via WMI on a Windows host
|
27
|
+
|
28
|
+
Example:
|
29
|
+
[source,ruby]
|
30
|
+
input {
|
31
|
+
wmi {
|
32
|
+
query => "select * from Win32_Process"
|
33
|
+
interval => 10
|
34
|
+
}
|
35
|
+
wmi {
|
36
|
+
query => "select PercentProcessorTime from Win32_PerfFormattedData_PerfOS_Processor where name = '_Total'"
|
37
|
+
}
|
38
|
+
wmi { # Connect to a remote host
|
39
|
+
query => "select * from Win32_Process"
|
40
|
+
host => "MyRemoteHost"
|
41
|
+
user => "mydomain\myuser"
|
42
|
+
password => "Password"
|
43
|
+
}
|
44
|
+
}
|
45
|
+
|
46
|
+
[id="plugins-{type}s-{plugin}-options"]
|
47
|
+
==== Wmi Input Configuration Options
|
48
|
+
|
49
|
+
This plugin supports the following configuration options plus the <<plugins-{type}s-{plugin}-common-options>> described later.
|
50
|
+
|
51
|
+
[cols="<,<,<",options="header",]
|
52
|
+
|=======================================================================
|
53
|
+
|Setting |Input type|Required
|
54
|
+
| <<plugins-{type}s-{plugin}-host>> |<<string,string>>|No
|
55
|
+
| <<plugins-{type}s-{plugin}-interval>> |<<number,number>>|No
|
56
|
+
| <<plugins-{type}s-{plugin}-namespace>> |<<string,string>>|No
|
57
|
+
| <<plugins-{type}s-{plugin}-password>> |<<password,password>>|No
|
58
|
+
| <<plugins-{type}s-{plugin}-query>> |<<string,string>>|Yes
|
59
|
+
| <<plugins-{type}s-{plugin}-user>> |<<string,string>>|No
|
60
|
+
|=======================================================================
|
61
|
+
|
62
|
+
Also see <<plugins-{type}s-{plugin}-common-options>> for a list of options supported by all
|
63
|
+
input plugins.
|
64
|
+
|
65
|
+
|
66
|
+
|
67
|
+
[id="plugins-{type}s-{plugin}-host"]
|
68
|
+
===== `host`
|
69
|
+
|
70
|
+
* Value type is <<string,string>>
|
71
|
+
* Default value is `"localhost"`
|
72
|
+
|
73
|
+
Host to connect to ( Defaults to localhost )
|
74
|
+
|
75
|
+
[id="plugins-{type}s-{plugin}-interval"]
|
76
|
+
===== `interval`
|
77
|
+
|
78
|
+
* Value type is <<number,number>>
|
79
|
+
* Default value is `10`
|
80
|
+
|
81
|
+
Polling interval
|
82
|
+
|
83
|
+
[id="plugins-{type}s-{plugin}-namespace"]
|
84
|
+
===== `namespace`
|
85
|
+
|
86
|
+
* Value type is <<string,string>>
|
87
|
+
* Default value is `"root\\cimv2"`
|
88
|
+
|
89
|
+
Namespace when doing remote connections
|
90
|
+
|
91
|
+
[id="plugins-{type}s-{plugin}-password"]
|
92
|
+
===== `password`
|
93
|
+
|
94
|
+
* Value type is <<password,password>>
|
95
|
+
* There is no default value for this setting.
|
96
|
+
|
97
|
+
Password when doing remote connections
|
98
|
+
|
99
|
+
[id="plugins-{type}s-{plugin}-query"]
|
100
|
+
===== `query`
|
101
|
+
|
102
|
+
* This is a required setting.
|
103
|
+
* Value type is <<string,string>>
|
104
|
+
* There is no default value for this setting.
|
105
|
+
|
106
|
+
WMI query
|
107
|
+
|
108
|
+
[id="plugins-{type}s-{plugin}-user"]
|
109
|
+
===== `user`
|
110
|
+
|
111
|
+
* Value type is <<string,string>>
|
112
|
+
* There is no default value for this setting.
|
113
|
+
|
114
|
+
Username when doing remote connections
|
115
|
+
|
116
|
+
|
117
|
+
|
118
|
+
[id="plugins-{type}s-{plugin}-common-options"]
|
119
|
+
include::{include_path}/{type}.asciidoc[]
|
data/logstash-input-wmi.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'logstash-input-wmi'
|
3
|
-
s.version = '3.0.
|
3
|
+
s.version = '3.0.1'
|
4
4
|
s.licenses = ['Apache License (2.0)']
|
5
5
|
s.summary = "Collect data from WMI query"
|
6
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"
|
@@ -10,7 +10,7 @@ Gem::Specification.new do |s|
|
|
10
10
|
s.require_paths = ["lib"]
|
11
11
|
|
12
12
|
# Files
|
13
|
-
s.files = Dir[
|
13
|
+
s.files = Dir["lib/**/*","spec/**/*","*.gemspec","*.md","CONTRIBUTORS","Gemfile","LICENSE","NOTICE.TXT", "vendor/jar-dependencies/**/*.jar", "vendor/jar-dependencies/**/*.rb", "VERSION", "docs/**/*"]
|
14
14
|
|
15
15
|
# Tests
|
16
16
|
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-wmi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.1
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Elastic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
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
|
@@ -70,6 +70,7 @@ files:
|
|
70
70
|
- LICENSE
|
71
71
|
- NOTICE.TXT
|
72
72
|
- README.md
|
73
|
+
- docs/index.asciidoc
|
73
74
|
- lib/logstash/inputs/wmi.rb
|
74
75
|
- logstash-input-wmi.gemspec
|
75
76
|
- spec/inputs/wmi_spec.rb
|