lib/logstash/outputs/riak.rb in logstash-output-riak-0.1.0 vs lib/logstash/outputs/riak.rb in logstash-output-riak-0.1.1
- old
+ new
@@ -12,11 +12,12 @@
# The nodes of your Riak cluster
# This can be a single host or
# a Logstash hash of node/port pairs
# e.g
- # ["node1", "8098", "node2", "8098"]
+ # [source,ruby]
+ # ["node1", "8098", "node2", "8098"]
config :nodes, :validate => :hash, :default => {"localhost" => "8098"}
# The protocol to use
# HTTP or ProtoBuf
# Applies to ALL backends listed above
@@ -38,22 +39,25 @@
config :key_name, :validate => :string
# Bucket properties (NYI)
# Logstash hash of properties for the bucket
# i.e.
- # `bucket_props => ["r", "one", "w", "one", "dw", "one"]`
+ # [source,ruby]
+ # `bucket_props => ["r", "one", "w", "one", "dw", "one"]`
# or
- # `bucket_props => ["n_val", "3"]`
+ # [source,ruby]
+ # `bucket_props => ["n_val", "3"]`
# Note that the Logstash config language cannot support
# hash or array values
# Properties will be passed as-is
config :bucket_props, :validate => :hash
# Indices
# Array of fields to add 2i on
# e.g.
- # `indices => ["source_host", "type"]
+ # [source,ruby]
+ # `indices => ["source_host", "type"]
# Off by default as not everyone runs eleveldb
config :indices, :validate => :array
# Search
# Enable search on the bucket defined above
@@ -67,10 +71,12 @@
# Options for SSL connections
# Only applied if SSL is enabled
# Logstash hash that maps to the riak-client options
# here: https://github.com/basho/riak-ruby-client/wiki/Connecting-to-Riak
# You'll likely want something like this:
+ #
# `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`
config :ssl_opts, :validate => :hash
# Metadata (NYI)