You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: configuration/file.md
+27-3
Original file line number
Diff line number
Diff line change
@@ -4,12 +4,14 @@ There are some cases where using the command line to start Fluent Bit is not ide
4
4
5
5
Fluent Bit allows to use one configuration file which works at a global scope and uses the [schema](configuration_schema.md) defined previously.
6
6
7
-
The configuration file support three types of sections:
7
+
The configuration file supports four types of sections:
8
8
9
9
- Service
10
10
- Input
11
+
- Filter
11
12
- Output
12
13
14
+
13
15
## Service
14
16
15
17
The _Service_ section defines global properties of the service, the keys available as of this version are described in the following table:
@@ -59,18 +61,40 @@ The following is an example of an _INPUT_ section:
59
61
Tag my_cpu
60
62
```
61
63
64
+
## Filter
65
+
66
+
A _FILTER_ section defines a filter (related to an filter plugin), here we will describe the base configuration for each _FILTER_ section. Note that each filter plugin may add it own configuration keys:
67
+
68
+
| Key | Description |
69
+
|--------|---------------------------|
70
+
| Name | Name of the filter plugin. |
71
+
| Match | It sets a pattern to match certain records Tag. It's case sensitive and support the start (*) character as a wildcard. ||
72
+
73
+
74
+
The _Name_ is mandatory and it let Fluent Bit know which filter plugin should be loaded. The _Match_ is mandatory for all plugins.
75
+
76
+
### Example
77
+
78
+
The following is an example of an _FILTER_ section:
79
+
80
+
```Python
81
+
[FILTER]
82
+
Name stdout
83
+
Match *
84
+
```
85
+
62
86
## Output
63
87
64
88
The _OUTPUT_ section specify a destination that certain records should follow after a Tag match. The configuration support the following keys:
65
89
66
90
| Key | Description |
67
91
|--------|----------------------------|
68
92
| Name | Name of the output plugin. |
69
-
| Match | It set a pattern to match certain records Tag. It's case sensitive and support the start (*) character as a wildcard. |
93
+
| Match | It sets a pattern to match certain records Tag. It's case sensitive and support the start (*) character as a wildcard. |
70
94
71
95
### Example
72
96
73
-
The following is an example of an _INPUT_ section:
97
+
The following is an example of an _OUTPUT_ section:
0 commit comments