Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions pipeline/outputs/flowcounter.md
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
# FlowCounter

_FlowCounter_ is the protocol to count records. The **flowcounter** output plugin allows to count up records and its size.
The _FlowCounter_ output plugin lets you count up records and their size.

## Configuration Parameters
## Configuration parameters

The plugin supports the following configuration parameters:

| Key | Description | Default |
| :--- | :--- | :--- |
| Unit | The unit of duration. \(second/minute/hour/day\) | minute |
| Workers | The number of [workers](../../administration/multithreading.md#outputs) to perform flush operations for this output. | `0` |
| `Unit` | The unit of duration. Allowed values: `second`, `minute`, `hour`, `day` | `minute` |
| `Workers` | The number of [workers](../../administration/multithreading.md#outputs) to perform flush operations for this output. | `0` |

## Getting Started
## Get started

You can run the plugin from the command line or through the configuration file:
You can run the plugin from the command line or through the configuration file.

### Command Line
### Command line

From the command line you can let Fluent Bit count up a data with the following options:
From the command line you can let Fluent Bit count up data with the following options:

```shell
fluent-bit -i cpu -o flowcounter
```

### Configuration File
### Configuration file

In your main configuration file append the following:

Expand All @@ -35,7 +35,7 @@ pipeline:
inputs:
- name: cpu
tag: cpu

outputs:
- name: flowcounter
match: '*'
Expand All @@ -61,10 +61,10 @@ pipeline:

## Testing

Once Fluent Bit is running, you will see the reports in the output interface similar to this:
When Fluent Bit is running, you will see the reports in the output interface similar to this:

```text
...
[out_flowcounter] cpu.0:[1482458540, {"counts":60, "bytes":7560, "counts/minute":1, "bytes/minute":126 }]
...
```
```
1 change: 1 addition & 0 deletions vale-styles/FluentBit/Headings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ exceptions:
- Elastic Cloud
- Emmet
- EventBridge
- FlowCounter
- Fluent Bit
- GCP
- GitLab
Expand Down