File
The file output plugin allows to write the data received through the input plugin to file.
Configuration Parameters
The plugin supports the following configuration parameters:
Format
out_file format
Output time, tag and json records. There is no configuration parameters for out_file.
plain format
Output the records as JSON (without additional tag
and timestamp
attributes). There is no configuration parameters for plain format.
csv format
Output the records as csv. Csv supports an additional configuration parameter.
ltsv format
Output the records as LTSV. LTSV supports an additional configuration parameter.
template format
Output the records using a custom format template.
This accepts a formatting template and fills placeholders using corresponding values in a record.
For example, if you set up the configuration as below:
You will get the following output:
Getting Started
You can run the plugin from the command line or through the configuration file:
Command Line
From the command line you can let Fluent Bit count up a data with the following options:
Configuration File
In your main configuration file append the following Input & Output sections:
Last updated