File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change 11# Counter
22
3- _ Counter_ is a very simple plugin that counts how many records it's getting upon flush time. Plugin output is as follows:
3+ _ Counter_ is a plugin that counts how many records it's getting upon flush time. Plugin output is as follows:
44
55``` text
66[TIMESTAMP, NUMBER_OF_RECORDS_NOW] (total = RECORDS_SINCE_IT_STARTED)
77```
88
9- ## Getting Started
9+ ## Get started
1010
11- You can run the plugin from the command line or through the configuration file:
11+ You can run the plugin from the command line or through the configuration file.
1212
13- ### Command Line
13+ ### Command line
1414
15- From the command line you can let Fluent Bit count up a data with the following options:
15+ From the command line you can let Fluent Bit count data with the following options:
1616
1717``` shell
1818fluent-bit -i cpu -o counter
1919```
2020
21- ### Configuration File
21+ ### Configuration file
2222
2323In your main configuration file append the following:
2424
@@ -30,7 +30,7 @@ pipeline:
3030 inputs :
3131 - name : cpu
3232 tag : cpu
33-
33+
3434 outputs :
3535 - name : counter
3636 match : ' *'
@@ -54,13 +54,13 @@ pipeline:
5454
5555## Testing
5656
57- Once Fluent Bit is running, you will see the reports in the output interface similar to this :
57+ When Fluent Bit is running, you will see the reports similar to this in the output interface:
5858
59- ``` shell
59+ ``` text
6060...
61611500484743,1 (total = 1)
62621500484744,1 (total = 2)
63631500484745,1 (total = 3)
64641500484746,1 (total = 4)
65651500484747,1 (total = 5)
66- ```
66+ ```
You can’t perform that action at this time.
0 commit comments