Flow counter
Last updated
Was this helpful?
The Flow counter output plugin lets you count up records and their size.
event_based
When enabled, use the timestamp from the log event for time bucketing instead of the current wall-clock time.
false
unit
The unit of duration. Allowed values: second, minute, hour, day.
minute
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 data with the following options:
fluent-bit -i cpu -o flowcounterIn your main configuration file append the following:
pipeline:
inputs:
- name: cpu
tag: cpu
outputs:
- name: flowcounter
match: '*'
unit: second[INPUT]
Name cpu
Tag cpu
[OUTPUT]
Name flowcounter
Match *
Unit secondWhen Fluent Bit is running, you will see the reports in the output interface similar to this:
Last updated
Was this helpful?
Was this helpful?
...
[out_flowcounter] cpu.0:[1482458540, {"counts":60, "bytes":7560, "counts/minute":1, "bytes/minute":126 }]
...