Skip to content

Commit

Permalink
Fix formatting for code samples in output-riak
Browse files Browse the repository at this point in the history
Fixes #773
  • Loading branch information
karenzone committed Aug 3, 2019
1 parent a8b2b2c commit f639ff7
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions docs/plugins/outputs/riak.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -71,15 +71,23 @@ apply to ALL the buckets.
Bucket properties (NYI)
Logstash hash of properties for the bucket
i.e.

[source,ruby]
-----
bucket_props => {
"r" => "one"
"w" => "one"
"dw", "one
}
-----

or

[source,ruby]
-----
bucket_props => { "n_val" => "3" }
-----

Properties will be passed as-is

[id="plugins-{type}s-{plugin}-enable_search"]
Expand Down Expand Up @@ -109,8 +117,12 @@ Enable SSL
Indices
Array of fields to add 2i on
e.g.

[source,ruby]
-----
`indices => ["source_host", "type"]
-----

Off by default as not everyone runs eleveldb

[id="plugins-{type}s-{plugin}-key_name"]
Expand All @@ -134,11 +146,14 @@ The nodes of your Riak cluster
This can be a single host or
a Logstash hash of node/port pairs
e.g

[source,ruby]
-----
{
"node1" => "8098"
"node2" => "8098"
}
-----

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

[source, ruby]
-----
ssl_opts => {
"pem" => "/etc/riak.pem"
"ca_path" => "/usr/share/certificates"
}
-----

Per the riak client docs, the above sample options
will turn on SSL `VERIFY_PEER`
Expand Down

0 comments on commit f639ff7

Please sign in to comment.