The flowcounter output plugin, allows to count up records and its size.
Key | Description | Default |
---|---|---|
Unit | The unit of duration. (second/minute/hour/day) | minute |
In order to count up records, you can run the plugin from the command line or through the configuration file:
$ fluent-bit -i cpu -o flowcounter -p unit=second
In your main configuration file append the following Input & Output sections:
[INPUT]
Name cpu
Tag cpu
[OUTPUT]
Name flowcounter
Match *
Unit second