Plugin Helper: Compat Parameters
compat_parameters
helper convert parameters from v0.12 to v1.0 style.
Here is an example:
Methods
compat_parameters_convert(conf, *types, **kwargs)
compat_parameters_convert(conf, *types, **kwargs)
conf
:Fluent::Configuration
instancetypes
: Following types are supported::buffer
:inject
:extract
:parser
:formatter
kwargs
:default_chunk_key
: Sets the default chunk key. For more details,
IMPORTANT: You cannot mix v1.0 and v0.12 styles in one plugin directive. If you mix v1.0 and v0.12 styles, v1.0 style is used and v0.12 style is ignored.
Here is an example:
buffer
buffer
old (v0.12) | new (v1) | note |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| also set |
|
| |
|
| |
|
| exclusive with |
|
| exclusive with |
This flat configuration:
converts to:
For more details, see Buffer Section Configuration.
inject
inject
old (v0.12) | new (v1) | note |
|
| if |
|
| |
|
| |
|
| |
|
| if |
|
| |
|
| exclusive with |
|
| exclusive with |
This flat configuration:
converts to:
For more details, see Inject Plugin Helper API.
extract
extract
old (v0.12) | new (v1) | note |
|
| |
|
| |
|
| |
|
| |
|
| exclusive with |
|
| exclusive with |
This flat configuration:
converts to:
For more details, see Extract Plugin Helper API
parser
parser
old (v0.12) | new (v1) | note | plugin |
|
| ||
|
| converted to JSON format | |
|
| ||
|
| ||
|
|
| |
|
| ||
|
| ||
|
| exclusive with | |
|
| exclusive with | |
|
| ||
|
| ||
|
| ||
|
| ||
|
|
| |
|
|
| |
|
|
| |
|
|
| |
|
|
| |
|
|
| |
|
|
|
This flat configuration:
converts into:
For more details, see Parser Plugin Overview and Writing Parser Plugins.
formatter
formatter
old (v0.12) | new (v1) | note | plugin |
|
| ||
|
| ||
|
|
| |
|
|
| |
|
|
| |
|
|
| |
|
|
| |
|
|
| |
|
|
| |
|
| exclusive with |
|
|
| exclusive with |
|
|
|
| |
|
|
| |
|
|
| |
|
|
|
This flat configuration:
converts to:
For more details, see Formatter Plugin Overview and Writing Formatter Plugins.
Plugins using compat_parameters
compat_parameters
If this article is incorrect or outdated, or omits critical information, please let us know. Fluentd is an open-source project under Cloud Native Computing Foundation (CNCF). All components are available under the Apache 2 License.
Last updated