Skip to content

Instantly share code, notes, and snippets.

@nokute78
Created December 30, 2016 02:34
Show Gist options
  • Save nokute78/37ef36589ffcb4ece9a8401e636078d2 to your computer and use it in GitHub Desktop.
Save nokute78/37ef36589ffcb4ece9a8401e636078d2 to your computer and use it in GitHub Desktop.
out_flowcounter_doc

out_flowcounter

The flowcounter output plugin, allows to count up records and its size.

Configuration Parameters

Key Description Default
Unit The unit of duration. (second/minute/hour/day) minute

Getting Started

In order to count up records, you can run the plugin from the command line or through the configuration file:

Command Line

$ fluent-bit -i cpu -o flowcounter -p unit=second

Configuration File

In your main configuration file append the following Input & Output sections:

[INPUT]
    Name  cpu
    Tag   cpu

[OUTPUT]
    Name  flowcounter
    Match *
    Unit second
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment