Skip to content

Commit 399010b

Browse files
committed
Fix formatting for code samples in output-riak
Fixes #773
1 parent 2411a8e commit 399010b

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

docs/plugins/outputs/riak.asciidoc

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,15 +71,23 @@ apply to ALL the buckets.
7171
Bucket properties (NYI)
7272
Logstash hash of properties for the bucket
7373
i.e.
74+
7475
[source,ruby]
76+
-----
7577
bucket_props => {
7678
"r" => "one"
7779
"w" => "one"
7880
"dw", "one
7981
}
82+
-----
83+
8084
or
85+
8186
[source,ruby]
87+
-----
8288
bucket_props => { "n_val" => "3" }
89+
-----
90+
8391
Properties will be passed as-is
8492

8593
[id="plugins-{type}s-{plugin}-enable_search"]
@@ -109,8 +117,12 @@ Enable SSL
109117
Indices
110118
Array of fields to add 2i on
111119
e.g.
120+
112121
[source,ruby]
122+
-----
113123
`indices => ["source_host", "type"]
124+
-----
125+
114126
Off by default as not everyone runs eleveldb
115127

116128
[id="plugins-{type}s-{plugin}-key_name"]
@@ -134,11 +146,14 @@ The nodes of your Riak cluster
134146
This can be a single host or
135147
a Logstash hash of node/port pairs
136148
e.g
149+
137150
[source,ruby]
151+
-----
138152
{
139153
"node1" => "8098"
140154
"node2" => "8098"
141155
}
156+
-----
142157

143158
[id="plugins-{type}s-{plugin}-proto"]
144159
===== `proto`
@@ -165,10 +180,12 @@ here: https://github.com/basho/riak-ruby-client/wiki/Connecting-to-Riak
165180
You'll likely want something like this:
166181

167182
[source, ruby]
183+
-----
168184
ssl_opts => {
169185
"pem" => "/etc/riak.pem"
170186
"ca_path" => "/usr/share/certificates"
171187
}
188+
-----
172189

173190
Per the riak client docs, the above sample options
174191
will turn on SSL `VERIFY_PEER`

0 commit comments

Comments
 (0)