Exploring Codec Plugins
Codec plugins are used to encode/decode the data. The input data can come in various formats, hence, to read and store the data of different formats, we use codec. Some of the codec plugins are as follows.
rubydebug
The rubydebug
codec is a fairly simple plugin that outputs the data to the standard output of the shell, which prints the data using the Ruby Awesome Print library.
The basic configuration for rubydebug
is as follows:
rubydebug { }
In this plugin, no settings are mandatory. The additional configuration settings are as follows:
metadata
: This is used to specify whether or not to include the metadata while printing the output to the shell.
The value type and default values for the settings are as follows:
Setting |
Value type |
Default value |
|
Boolean |
|
Configuration example:
codec { rubydebug { metadata => true } }
json
The json
codec plugin is a simple plugin which encodes or decodes the data...