logstash-output-riak 0.1.4 → 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/lib/logstash/outputs/riak.rb +17 -10
- data/logstash-output-riak.gemspec +3 -3
- metadata +9 -9
- data/.gitignore +0 -4
- data/Rakefile +0 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 99c375381be998ac4cd879419cbb63d3f8d12600
|
4
|
+
data.tar.gz: 465d04f6f56cb07150a7ff5256d4fffd87c6840b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2f2bc0404c5f180013c60a4ac6778a6c27a55733172ce86fb0ea4de83814e8bea535e14e148b4a1c5c3e357d1b4f6f166b863cbea71c05e6b66a6a814cd1625
|
7
|
+
data.tar.gz: c6244e4cd498178fa759e105b7ddf02c85251b94a7bad94f0b4d189d12d3779b2bbe53fbf8709ddc372d71abccc6d2e8d69403a8a4f50ade1c15bc993e40e941
|
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.
|
@@ -2,10 +2,8 @@
|
|
2
2
|
require "logstash/outputs/base"
|
3
3
|
require "logstash/namespace"
|
4
4
|
|
5
|
-
|
6
5
|
# Riak is a distributed k/v store from Basho.
|
7
6
|
# It's based on the Dynamo model.
|
8
|
-
|
9
7
|
class LogStash::Outputs::Riak < LogStash::Outputs::Base
|
10
8
|
config_name "riak"
|
11
9
|
|
@@ -14,7 +12,10 @@ class LogStash::Outputs::Riak < LogStash::Outputs::Base
|
|
14
12
|
# a Logstash hash of node/port pairs
|
15
13
|
# e.g
|
16
14
|
# [source,ruby]
|
17
|
-
#
|
15
|
+
# {
|
16
|
+
# "node1" => "8098"
|
17
|
+
# "node2" => "8098"
|
18
|
+
# }
|
18
19
|
config :nodes, :validate => :hash, :default => {"localhost" => "8098"}
|
19
20
|
|
20
21
|
# The protocol to use
|
@@ -34,19 +35,21 @@ class LogStash::Outputs::Riak < LogStash::Outputs::Base
|
|
34
35
|
# The event key name
|
35
36
|
# variables are valid here.
|
36
37
|
#
|
37
|
-
# Choose this carefully. Best to let riak decide
|
38
|
+
# Choose this carefully. Best to let riak decide.
|
38
39
|
config :key_name, :validate => :string
|
39
40
|
|
40
41
|
# Bucket properties (NYI)
|
41
42
|
# Logstash hash of properties for the bucket
|
42
43
|
# i.e.
|
43
44
|
# [source,ruby]
|
44
|
-
#
|
45
|
+
# bucket_props => {
|
46
|
+
# "r" => "one"
|
47
|
+
# "w" => "one"
|
48
|
+
# "dw", "one
|
49
|
+
# }
|
45
50
|
# or
|
46
51
|
# [source,ruby]
|
47
|
-
#
|
48
|
-
# Note that the Logstash config language cannot support
|
49
|
-
# hash or array values
|
52
|
+
# bucket_props => { "n_val" => "3" }
|
50
53
|
# Properties will be passed as-is
|
51
54
|
config :bucket_props, :validate => :hash
|
52
55
|
|
@@ -73,7 +76,11 @@ class LogStash::Outputs::Riak < LogStash::Outputs::Base
|
|
73
76
|
# here: https://github.com/basho/riak-ruby-client/wiki/Connecting-to-Riak
|
74
77
|
# You'll likely want something like this:
|
75
78
|
#
|
76
|
-
#
|
79
|
+
# [source, ruby]
|
80
|
+
# ssl_opts => {
|
81
|
+
# "pem" => "/etc/riak.pem"
|
82
|
+
# "ca_path" => "/usr/share/certificates"
|
83
|
+
# }
|
77
84
|
#
|
78
85
|
# Per the riak client docs, the above sample options
|
79
86
|
# will turn on SSL `VERIFY_PEER`
|
@@ -113,7 +120,7 @@ class LogStash::Outputs::Riak < LogStash::Outputs::Base
|
|
113
120
|
|
114
121
|
public
|
115
122
|
def receive(event)
|
116
|
-
|
123
|
+
|
117
124
|
|
118
125
|
@bucket.each do |b|
|
119
126
|
# setup our bucket(s)
|
@@ -1,7 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
|
3
3
|
s.name = 'logstash-output-riak'
|
4
|
-
s.version = '0.1
|
4
|
+
s.version = '2.0.1'
|
5
5
|
s.licenses = ['Apache License (2.0)']
|
6
6
|
s.summary = "Send events to Riak"
|
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"
|
@@ -11,7 +11,7 @@ Gem::Specification.new do |s|
|
|
11
11
|
s.require_paths = ["lib"]
|
12
12
|
|
13
13
|
# Files
|
14
|
-
s.files =
|
14
|
+
s.files = Dir['lib/**/*','spec/**/*','vendor/**/*','*.gemspec','*.md','CONTRIBUTORS','Gemfile','LICENSE','NOTICE.TXT']
|
15
15
|
|
16
16
|
# Tests
|
17
17
|
s.test_files = s.files.grep(%r{^(test|spec|features)/})
|
@@ -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",
|
23
|
+
s.add_runtime_dependency "logstash-core", ">= 2.0.0.snapshot", "< 3.0.0"
|
24
24
|
|
25
25
|
s.add_runtime_dependency 'riak-client', ['1.0.3']
|
26
26
|
|
metadata
CHANGED
@@ -1,24 +1,24 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-output-riak
|
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:
|
@@ -64,12 +64,12 @@ executables: []
|
|
64
64
|
extensions: []
|
65
65
|
extra_rdoc_files: []
|
66
66
|
files:
|
67
|
-
- .
|
67
|
+
- CHANGELOG.md
|
68
68
|
- CONTRIBUTORS
|
69
69
|
- Gemfile
|
70
70
|
- LICENSE
|
71
|
+
- NOTICE.TXT
|
71
72
|
- README.md
|
72
|
-
- Rakefile
|
73
73
|
- lib/logstash/outputs/riak.rb
|
74
74
|
- logstash-output-riak.gemspec
|
75
75
|
- spec/outputs/riak_spec.rb
|
@@ -95,7 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
95
95
|
version: '0'
|
96
96
|
requirements: []
|
97
97
|
rubyforge_project:
|
98
|
-
rubygems_version: 2.
|
98
|
+
rubygems_version: 2.4.8
|
99
99
|
signing_key:
|
100
100
|
specification_version: 4
|
101
101
|
summary: Send events to Riak
|
data/.gitignore
DELETED