Formatter Plugins
Last updated
Was this helpful?
Last updated
Was this helpful?
Fluentd has nine (9) types of plugins:
This article gives an overview of the Formatter Plugin.
Sometimes, the output format for an output plugin does not meet one's needs. Fluentd has a pluggable system called Formatter that lets the user extend and reuse custom output formats.
For an output plugin that supports Formatter, the <format>
directive can be used to change the output format.
However, if you set @type json
in <format>
like this:
The output changes to
For example, by default, plugin outputs data as
i.e., each line is a single JSON object without "time" and "tag" fields. If you want to include "time" and "tag", use .
See to learn how to develop a custom formatter.
If this article is incorrect or outdated, or omits critical information, please . is an open-source project under . All components are available under the Apache 2 License.