Riak output pluginedit

  • Plugin version: v3.0.5
  • Released on: 2019-10-09
  • Changelog

For other versions, see the Versioned plugin docs.

Installationedit

For plugins not bundled by default, it is easy to install by running bin/logstash-plugin install logstash-output-riak. See Working with plugins for more details.

Getting Helpedit

For questions about the plugin, open a topic in the Discuss forums. For bugs or feature requests, open an issue in Github. For the list of Elastic supported plugins, please consult the Elastic Support Matrix.

Descriptionedit

Riak is a distributed k/v store from Basho. It’s based on the Dynamo model.

Riak Output Configuration Optionsedit

This plugin supports the following configuration options plus the Common Options described later.

Setting Input type Required

bucket

array

No

bucket_props

hash

No

enable_search

boolean

No

enable_ssl

boolean

No

indices

array

No

key_name

string

No

nodes

hash

No

proto

string, one of ["http", "pb"]

No

ssl_opts

hash

No

Also see Common Options for a list of options supported by all output plugins.

 

bucketedit

  • Value type is array
  • Default value is ["logstash-%{+YYYY.MM.dd}"]

The bucket name to write events to Expansion is supported here as values are passed through event.sprintf Multiple buckets can be specified here but any bucket-specific settings defined apply to ALL the buckets.

bucket_propsedit

  • Value type is hash
  • There is no default value for this setting.

Bucket properties (NYI) Logstash hash of properties for the bucket i.e.

    bucket_props => {
        "r" => "one"
        "w" => "one"
        "dw", "one
     }

or

    bucket_props => { "n_val" => "3" }

Properties will be passed as-is

enable_searchedit

  • Value type is boolean
  • Default value is false

Search Enable search on the bucket defined above

enable_ssledit

  • Value type is boolean
  • Default value is false

SSL Enable SSL

indicesedit

  • Value type is array
  • There is no default value for this setting.

Indices Array of fields to add 2i on e.g.

    `indices => ["source_host", "type"]

Off by default as not everyone runs eleveldb

key_nameedit

  • Value type is string
  • There is no default value for this setting.

The event key name variables are valid here.

Choose this carefully. Best to let riak decide.

nodesedit

  • Value type is hash
  • Default value is {"localhost"=>"8098"}

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"
    }

protoedit

  • Value can be any of: http, pb
  • Default value is "http"

The protocol to use HTTP or ProtoBuf Applies to ALL backends listed above No mix and match

ssl_optsedit

  • Value type is hash
  • There is no default value for this setting.

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

Common Optionsedit

The following configuration options are supported by all output plugins:

Setting Input type Required

enable_metric

boolean

No

id

string

No

enable_metricedit

  • Value type is boolean
  • Default value is true

Disable or enable metric logging for this specific plugin instance. By default we record all the metrics we can, but you can disable metrics collection for a specific plugin.

idedit

  • Value type is string
  • There is no default value for this setting.

Add a unique ID to the plugin configuration. If no ID is specified, Logstash will generate one. It is strongly recommended to set this ID in your configuration. This is particularly useful when you have two or more plugins of the same type. For example, if you have 2 riak outputs. Adding a named ID in this case will help in monitoring Logstash when using the monitoring APIs.

output {
  riak {
    id => "my_plugin_id"
  }
}

Variable substitution in the id field only supports environment variables and does not support the use of values from the secret store.