logstash-output-riak 3.0.0 → 3.0.1
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 +177 -0
- data/logstash-output-riak.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: b7577aa431989655df89822ae479b0040acce2cb
|
4
|
+
data.tar.gz: 7653445add8f53fef9b5004f1909315c6a9df354
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ece3d61209ae4798bce0fb8f1eb7f0c7f4f6d9d87ff2469099337d4429871f7a7b1c95c61aaeb283688f2b2039d3957b4d48f39baca9e075ed28c2b4bce73532
|
7
|
+
data.tar.gz: 485ca13a0a2c5af81099c74e8dfe8ffb1fa1caf50f7a736187da3ee6486fee33febf476804c39e0707439b6ed212b41b43d3b9aabdb2ad60c2d703922300b03e
|
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,177 @@
|
|
1
|
+
:plugin: riak
|
2
|
+
:type: output
|
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
|
+
=== Riak output plugin
|
18
|
+
|
19
|
+
include::{include_path}/plugin_header.asciidoc[]
|
20
|
+
|
21
|
+
==== Description
|
22
|
+
|
23
|
+
Riak is a distributed k/v store from Basho.
|
24
|
+
It's based on the Dynamo model.
|
25
|
+
|
26
|
+
[id="plugins-{type}s-{plugin}-options"]
|
27
|
+
==== Riak Output Configuration Options
|
28
|
+
|
29
|
+
This plugin supports the following configuration options plus the <<plugins-{type}s-{plugin}-common-options>> described later.
|
30
|
+
|
31
|
+
[cols="<,<,<",options="header",]
|
32
|
+
|=======================================================================
|
33
|
+
|Setting |Input type|Required
|
34
|
+
| <<plugins-{type}s-{plugin}-bucket>> |<<array,array>>|No
|
35
|
+
| <<plugins-{type}s-{plugin}-bucket_props>> |<<hash,hash>>|No
|
36
|
+
| <<plugins-{type}s-{plugin}-enable_search>> |<<boolean,boolean>>|No
|
37
|
+
| <<plugins-{type}s-{plugin}-enable_ssl>> |<<boolean,boolean>>|No
|
38
|
+
| <<plugins-{type}s-{plugin}-indices>> |<<array,array>>|No
|
39
|
+
| <<plugins-{type}s-{plugin}-key_name>> |<<string,string>>|No
|
40
|
+
| <<plugins-{type}s-{plugin}-nodes>> |<<hash,hash>>|No
|
41
|
+
| <<plugins-{type}s-{plugin}-proto>> |<<string,string>>, one of `["http", "pb"]`|No
|
42
|
+
| <<plugins-{type}s-{plugin}-ssl_opts>> |<<hash,hash>>|No
|
43
|
+
|=======================================================================
|
44
|
+
|
45
|
+
Also see <<plugins-{type}s-{plugin}-common-options>> for a list of options supported by all
|
46
|
+
output plugins.
|
47
|
+
|
48
|
+
|
49
|
+
|
50
|
+
[id="plugins-{type}s-{plugin}-bucket"]
|
51
|
+
===== `bucket`
|
52
|
+
|
53
|
+
* Value type is <<array,array>>
|
54
|
+
* Default value is `["logstash-%{+YYYY.MM.dd}"]`
|
55
|
+
|
56
|
+
The bucket name to write events to
|
57
|
+
Expansion is supported here as values are
|
58
|
+
passed through event.sprintf
|
59
|
+
Multiple buckets can be specified here
|
60
|
+
but any bucket-specific settings defined
|
61
|
+
apply to ALL the buckets.
|
62
|
+
|
63
|
+
[id="plugins-{type}s-{plugin}-bucket_props"]
|
64
|
+
===== `bucket_props`
|
65
|
+
|
66
|
+
* Value type is <<hash,hash>>
|
67
|
+
* There is no default value for this setting.
|
68
|
+
|
69
|
+
Bucket properties (NYI)
|
70
|
+
Logstash hash of properties for the bucket
|
71
|
+
i.e.
|
72
|
+
[source,ruby]
|
73
|
+
bucket_props => {
|
74
|
+
"r" => "one"
|
75
|
+
"w" => "one"
|
76
|
+
"dw", "one
|
77
|
+
}
|
78
|
+
or
|
79
|
+
[source,ruby]
|
80
|
+
bucket_props => { "n_val" => "3" }
|
81
|
+
Properties will be passed as-is
|
82
|
+
|
83
|
+
[id="plugins-{type}s-{plugin}-enable_search"]
|
84
|
+
===== `enable_search`
|
85
|
+
|
86
|
+
* Value type is <<boolean,boolean>>
|
87
|
+
* Default value is `false`
|
88
|
+
|
89
|
+
Search
|
90
|
+
Enable search on the bucket defined above
|
91
|
+
|
92
|
+
[id="plugins-{type}s-{plugin}-enable_ssl"]
|
93
|
+
===== `enable_ssl`
|
94
|
+
|
95
|
+
* Value type is <<boolean,boolean>>
|
96
|
+
* Default value is `false`
|
97
|
+
|
98
|
+
SSL
|
99
|
+
Enable SSL
|
100
|
+
|
101
|
+
[id="plugins-{type}s-{plugin}-indices"]
|
102
|
+
===== `indices`
|
103
|
+
|
104
|
+
* Value type is <<array,array>>
|
105
|
+
* There is no default value for this setting.
|
106
|
+
|
107
|
+
Indices
|
108
|
+
Array of fields to add 2i on
|
109
|
+
e.g.
|
110
|
+
[source,ruby]
|
111
|
+
`indices => ["source_host", "type"]
|
112
|
+
Off by default as not everyone runs eleveldb
|
113
|
+
|
114
|
+
[id="plugins-{type}s-{plugin}-key_name"]
|
115
|
+
===== `key_name`
|
116
|
+
|
117
|
+
* Value type is <<string,string>>
|
118
|
+
* There is no default value for this setting.
|
119
|
+
|
120
|
+
The event key name
|
121
|
+
variables are valid here.
|
122
|
+
|
123
|
+
Choose this carefully. Best to let riak decide.
|
124
|
+
|
125
|
+
[id="plugins-{type}s-{plugin}-nodes"]
|
126
|
+
===== `nodes`
|
127
|
+
|
128
|
+
* Value type is <<hash,hash>>
|
129
|
+
* Default value is `{"localhost"=>"8098"}`
|
130
|
+
|
131
|
+
The nodes of your Riak cluster
|
132
|
+
This can be a single host or
|
133
|
+
a Logstash hash of node/port pairs
|
134
|
+
e.g
|
135
|
+
[source,ruby]
|
136
|
+
{
|
137
|
+
"node1" => "8098"
|
138
|
+
"node2" => "8098"
|
139
|
+
}
|
140
|
+
|
141
|
+
[id="plugins-{type}s-{plugin}-proto"]
|
142
|
+
===== `proto`
|
143
|
+
|
144
|
+
* Value can be any of: `http`, `pb`
|
145
|
+
* Default value is `"http"`
|
146
|
+
|
147
|
+
The protocol to use
|
148
|
+
HTTP or ProtoBuf
|
149
|
+
Applies to ALL backends listed above
|
150
|
+
No mix and match
|
151
|
+
|
152
|
+
[id="plugins-{type}s-{plugin}-ssl_opts"]
|
153
|
+
===== `ssl_opts`
|
154
|
+
|
155
|
+
* Value type is <<hash,hash>>
|
156
|
+
* There is no default value for this setting.
|
157
|
+
|
158
|
+
SSL Options
|
159
|
+
Options for SSL connections
|
160
|
+
Only applied if SSL is enabled
|
161
|
+
Logstash hash that maps to the riak-client options
|
162
|
+
here: https://github.com/basho/riak-ruby-client/wiki/Connecting-to-Riak
|
163
|
+
You'll likely want something like this:
|
164
|
+
|
165
|
+
[source, ruby]
|
166
|
+
ssl_opts => {
|
167
|
+
"pem" => "/etc/riak.pem"
|
168
|
+
"ca_path" => "/usr/share/certificates"
|
169
|
+
}
|
170
|
+
|
171
|
+
Per the riak client docs, the above sample options
|
172
|
+
will turn on SSL `VERIFY_PEER`
|
173
|
+
|
174
|
+
|
175
|
+
|
176
|
+
[id="plugins-{type}s-{plugin}-common-options"]
|
177
|
+
include::{include_path}/{type}.asciidoc[]
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'logstash-output-riak'
|
3
|
-
s.version = '3.0.
|
3
|
+
s.version = '3.0.1'
|
4
4
|
s.licenses = ['Apache License (2.0)']
|
5
5
|
s.summary = "Send events to Riak"
|
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-output-riak
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.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:
|
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/outputs/riak.rb
|
74
75
|
- logstash-output-riak.gemspec
|
75
76
|
- spec/outputs/riak_spec.rb
|