Counter is a plugin that counts how many records it's getting upon flush time. Plugin output is as follows:
[TIMESTAMP, NUMBER_OF_RECORDS_NOW] (total = RECORDS_SINCE_IT_STARTED)
You can run the plugin from the command line or through the configuration file.
From the command line you can let Fluent Bit count data with the following options:
fluent-bit -i cpu -o counter
In your main configuration file append the following:
pipeline: inputs: - name: cpu tag: cpu outputs: - name: counter match: '*'
[INPUT] Name cpu Tag cpu [OUTPUT] Name counter Match *
When Fluent Bit is running, you will see the reports similar to this in the output interface:
Last updated 1 year ago
Was this helpful?
... 1500484743,1 (total = 1) 1500484744,1 (total = 2) 1500484745,1 (total = 3) 1500484746,1 (total = 4) 1500484747,1 (total = 5)