Skip to content
Merged
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
20 changes: 10 additions & 10 deletions pipeline/outputs/counter.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
# Counter

_Counter_ is a very simple plugin that counts how many records it's getting upon flush time. Plugin output is as follows:
_Counter_ is a plugin that counts how many records it's getting upon flush time. Plugin output is as follows:

```text
[TIMESTAMP, NUMBER_OF_RECORDS_NOW] (total = RECORDS_SINCE_IT_STARTED)
```

## 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 data with the following options:

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

### Configuration File
### Configuration file

In your main configuration file append the following:

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

outputs:
- name: counter
match: '*'
Expand All @@ -54,13 +54,13 @@ pipeline:

## Testing

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

```shell
```text
...
1500484743,1 (total = 1)
1500484744,1 (total = 2)
1500484745,1 (total = 3)
1500484746,1 (total = 4)
1500484747,1 (total = 5)
```
```