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 1
1
# Counter
2
2
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:
4
4
5
5
``` text
6
6
[TIMESTAMP, NUMBER_OF_RECORDS_NOW] (total = RECORDS_SINCE_IT_STARTED)
7
7
```
8
8
9
- ## Getting Started
9
+ ## Get started
10
10
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.
12
12
13
- ### Command Line
13
+ ### Command line
14
14
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:
16
16
17
17
``` shell
18
18
fluent-bit -i cpu -o counter
19
19
```
20
20
21
- ### Configuration File
21
+ ### Configuration file
22
22
23
23
In your main configuration file append the following:
24
24
@@ -30,7 +30,7 @@ pipeline:
30
30
inputs :
31
31
- name : cpu
32
32
tag : cpu
33
-
33
+
34
34
outputs :
35
35
- name : counter
36
36
match : ' *'
@@ -54,13 +54,13 @@ pipeline:
54
54
55
55
## Testing
56
56
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:
58
58
59
- ``` shell
59
+ ``` text
60
60
...
61
61
1500484743,1 (total = 1)
62
62
1500484744,1 (total = 2)
63
63
1500484745,1 (total = 3)
64
64
1500484746,1 (total = 4)
65
65
1500484747,1 (total = 5)
66
- ```
66
+ ```
You can’t perform that action at this time.
0 commit comments