FlowCounter
FlowCounter is the protocol to count records. The flowcounter output plugin allows to count up records and its size.

Configuration Parameters

The plugin supports the following configuration parameters:
Key
Description
Default
Unit
The unit of duration. (second/minute/hour/day)
minute

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:
1
$ fluent-bit -i cpu -o flowcounter
Copied!

Configuration File

In your main configuration file append the following Input & Output sections:
1
[INPUT]
2
Name cpu
3
Tag cpu
4
5
[OUTPUT]
6
Name flowcounter
7
Match *
8
Unit second
Copied!

Testing

Once Fluent Bit is running, you will see the reports in the output interface similar to this:
1
$ fluent-bit -i cpu -o flowcounter
2
Fluent-Bit v0.10.0
3
Copyright (C) Treasure Data
4
5
[2016/12/23 11:01:20] [ info] [engine] started
6
[out_flowcounter] cpu.0:[1482458540, {"counts":60, "bytes":7560, "counts/minute":1, "bytes/minute":126 }]
Copied!
Last modified 2yr ago