logstash-filter-oui 0.1.5 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/NOTICE.TXT +5 -0
- data/README.md +5 -5
- data/logstash-filter-oui.gemspec +4 -4
- data/spec/filters/oui_spec.rb +5 -4
- data/spec/spec_helper.rb +2 -0
- metadata +11 -9
- data/Rakefile +0 -1
- data/example.conf +0 -32
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 149d63ff397abdd9e0c36e4d58fc27eab569cc79
|
4
|
+
data.tar.gz: 08996c17db12b933f2d34c5f92b8239f85a1d70d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 93a3d57d0042c2830ced2db26467137e00252a6a7f37a64d1dc60ca92edd70ff817840a202bbd98b69de184db069c9ff034cb1c8a00d331508c83989971510ef
|
7
|
+
data.tar.gz: 6a0b58e2b89f3b877296b5a3747fc52709a5047f385cd27a3a879c436d7bec79aeb035fb12978a41bbfb9190f32751fda04a9e5ff6ab9f66bb6e958526e775f7
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,5 @@
|
|
1
|
+
## 2.0.0
|
2
|
+
- Plugins were updated to follow the new shutdown semantic, this mainly allows Logstash to instruct input plugins to terminate gracefully,
|
3
|
+
instead of using Thread.raise on the plugins' threads. Ref: https://github.com/elastic/logstash/pull/3895
|
4
|
+
- Dependency on logstash-core update to 2.0
|
5
|
+
|
data/NOTICE.TXT
ADDED
data/README.md
CHANGED
@@ -1,19 +1,19 @@
|
|
1
1
|
# Logstash Plugin
|
2
2
|
|
3
|
-
This is a plugin for [Logstash](https://github.com/
|
3
|
+
This is a plugin for [Logstash](https://github.com/elastic/logstash).
|
4
4
|
|
5
5
|
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.
|
6
6
|
|
7
7
|
## Documentation
|
8
8
|
|
9
|
-
Logstash provides infrastructure to automatically generate documentation for this plugin. We use the asciidoc format to write documentation so any comments in the source code will be first converted into asciidoc and then into html. All plugin documentation are placed under one [central location](http://www.
|
9
|
+
Logstash provides infrastructure to automatically generate documentation for this plugin. We use the asciidoc format to write documentation so any comments in the source code will be first converted into asciidoc and then into html. All plugin documentation are placed under one [central location](http://www.elastic.co/guide/en/logstash/current/).
|
10
10
|
|
11
11
|
- For formatting code or config example, you can use the asciidoc `[source,ruby]` directive
|
12
|
-
- For more asciidoc formatting tips, see the excellent reference here https://github.com/
|
12
|
+
- For more asciidoc formatting tips, see the excellent reference here https://github.com/elastic/docs#asciidoc-guide
|
13
13
|
|
14
14
|
## Need Help?
|
15
15
|
|
16
|
-
Need help? Try #logstash on freenode IRC or the logstash
|
16
|
+
Need help? Try #logstash on freenode IRC or the https://discuss.elastic.co/c/logstash discussion forum.
|
17
17
|
|
18
18
|
## Developing
|
19
19
|
|
@@ -83,4 +83,4 @@ Programming is not a required skill. Whatever you've seen about open source and
|
|
83
83
|
|
84
84
|
It is more important to the community that you are able to contribute.
|
85
85
|
|
86
|
-
For more information about contributing, see the [CONTRIBUTING](https://github.com/
|
86
|
+
For more information about contributing, see the [CONTRIBUTING](https://github.com/elastic/logstash/blob/master/CONTRIBUTING.md) file.
|
data/logstash-filter-oui.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'logstash-filter-oui'
|
3
|
-
s.version = '0.1
|
3
|
+
s.version = '2.0.1'
|
4
4
|
s.licenses = ['Apache License (2.0)']
|
5
5
|
s.summary = "This example filter replaces the contents of the message field with the specified value."
|
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/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 =
|
13
|
+
s.files = Dir['lib/**/*','spec/**/*','vendor/**/*','*.gemspec','*.md','CONTRIBUTORS','Gemfile','LICENSE','NOTICE.TXT']
|
14
14
|
# Tests
|
15
15
|
s.test_files = s.files.grep(%r{^(test|spec|features)/})
|
16
16
|
|
@@ -18,9 +18,9 @@ Gem::Specification.new do |s|
|
|
18
18
|
s.metadata = { "logstash_plugin" => "true", "logstash_group" => "filter" }
|
19
19
|
|
20
20
|
# Gem dependencies
|
21
|
-
s.add_runtime_dependency "logstash-core",
|
21
|
+
s.add_runtime_dependency "logstash-core", ">= 2.0.0.snapshot", "< 3.0.0"
|
22
22
|
s.add_runtime_dependency 'oui-offline', '>= 1.2.6'
|
23
23
|
|
24
24
|
s.add_development_dependency 'logstash-devutils'
|
25
25
|
s.add_development_dependency 'jdbc-sqlite3'
|
26
|
-
end
|
26
|
+
end
|
data/spec/filters/oui_spec.rb
CHANGED
@@ -1,18 +1,19 @@
|
|
1
|
-
require "
|
1
|
+
require "spec_helper"
|
2
2
|
require "logstash/filters/oui"
|
3
3
|
|
4
4
|
describe LogStash::Filters::Oui do
|
5
5
|
describe "Set to OUI" do
|
6
|
-
config <<-CONFIG
|
6
|
+
let(:config) do <<-CONFIG
|
7
7
|
filter {
|
8
8
|
oui {
|
9
9
|
}
|
10
10
|
}
|
11
11
|
CONFIG
|
12
|
+
end
|
12
13
|
|
13
14
|
sample("message" => "00:50:56") do
|
14
|
-
|
15
|
-
|
15
|
+
expect(subject["oui"]).to include( "id" => 20566)
|
16
|
+
expect(subject["oui"]["organization"]).to eq("VMware, Inc.")
|
16
17
|
end
|
17
18
|
end
|
18
19
|
end
|
data/spec/spec_helper.rb
ADDED
metadata
CHANGED
@@ -1,24 +1,24 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-filter-oui
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Elastic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-10-08 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:
|
18
|
+
version: 2.0.0.snapshot
|
19
19
|
- - <
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version:
|
21
|
+
version: 3.0.0
|
22
22
|
name: logstash-core
|
23
23
|
prerelease: false
|
24
24
|
type: :runtime
|
@@ -26,10 +26,10 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - '>='
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version:
|
29
|
+
version: 2.0.0.snapshot
|
30
30
|
- - <
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version:
|
32
|
+
version: 3.0.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
requirement: !ruby/object:Gem::Requirement
|
35
35
|
requirements:
|
@@ -78,16 +78,17 @@ executables: []
|
|
78
78
|
extensions: []
|
79
79
|
extra_rdoc_files: []
|
80
80
|
files:
|
81
|
+
- CHANGELOG.md
|
81
82
|
- CONTRIBUTORS
|
82
83
|
- DEVELOPER.md
|
83
84
|
- Gemfile
|
84
85
|
- LICENSE
|
86
|
+
- NOTICE.TXT
|
85
87
|
- README.md
|
86
|
-
- Rakefile
|
87
|
-
- example.conf
|
88
88
|
- lib/logstash/filters/oui.rb
|
89
89
|
- logstash-filter-oui.gemspec
|
90
90
|
- spec/filters/oui_spec.rb
|
91
|
+
- spec/spec_helper.rb
|
91
92
|
homepage: http://www.elastic.co/guide/en/logstash/current/index.html
|
92
93
|
licenses:
|
93
94
|
- Apache License (2.0)
|
@@ -110,9 +111,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
110
111
|
version: '0'
|
111
112
|
requirements: []
|
112
113
|
rubyforge_project:
|
113
|
-
rubygems_version: 2.
|
114
|
+
rubygems_version: 2.4.8
|
114
115
|
signing_key:
|
115
116
|
specification_version: 4
|
116
117
|
summary: This example filter replaces the contents of the message field with the specified value.
|
117
118
|
test_files:
|
118
119
|
- spec/filters/oui_spec.rb
|
120
|
+
- spec/spec_helper.rb
|
data/Rakefile
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
require "logstash/devutils/rake"
|
data/example.conf
DELETED
@@ -1,32 +0,0 @@
|
|
1
|
-
input {
|
2
|
-
|
3
|
-
# This works
|
4
|
-
generator {
|
5
|
-
message => "00:50:56:c0:00:01"
|
6
|
-
count => 1
|
7
|
-
type => "test1"
|
8
|
-
}
|
9
|
-
|
10
|
-
generator {
|
11
|
-
message => "00:50:56"
|
12
|
-
count => 1
|
13
|
-
type => "test1"
|
14
|
-
}
|
15
|
-
|
16
|
-
# This will fail
|
17
|
-
generator {
|
18
|
-
message => "GG:GG:GG"
|
19
|
-
count => 1
|
20
|
-
type => "test1"
|
21
|
-
}
|
22
|
-
}
|
23
|
-
|
24
|
-
filter {
|
25
|
-
if [type] == "test1" {
|
26
|
-
oui {}
|
27
|
-
}
|
28
|
-
}
|
29
|
-
|
30
|
-
output {
|
31
|
-
stdout { codec => rubydebug }
|
32
|
-
}
|