The file output plugin allows to write the data received through the input plugin to file.
The plugin supports the following configuration parameters:
|Path||File path to output. If not set, the filename will be tag name.|
You can run the plugin from the command line or through the configuration file:
From the command line you can let Fluent Bit count up a data with the following options:
$ fluent-bit -i cpu -o file -p path=output.txt
In your main configuration file append the following Input & Output sections:
[INPUT] Name cpu Tag cpu [OUTPUT] Name file Match * Path output.txt