|
1 |
| -# Configuration File |
| 1 | +--- |
| 2 | +description: This page describes the main configuration file used by Fluent Bit |
| 3 | +--- |
2 | 4 |
|
3 |
| -There are some cases where using the command line to start Fluent Bit is not ideal. When running Fluent Bit as a service, a configuration file is preferred. |
| 5 | +# Configuration File |
4 | 6 |
|
5 |
| -Fluent Bit allows to use one configuration file which works at a global scope and uses the [schema](https://github.com/fluent/fluent-bit-docs/tree/ad9d80e5490bd5d79c86955c5689db1cb4cf89db/configuration/configuration_schema.md) defined previously. |
| 7 | +One of the ways to configure Fluent Bit is using a main configuration file. Fluent Bit allows to use one configuration file which works at a global scope and uses the [Format and Schema](format-schema.md) defined previously. |
6 | 8 |
|
7 |
| -The configuration file supports four types of sections: |
| 9 | +The main configuration file supports four types of sections: |
8 | 10 |
|
9 |
| -* [Service](https://github.com/fluent/fluent-bit-docs/tree/5f926fd1330690179b8c1edab90d672699599ec7/administration/configuring-fluent-bit/file.md#config_section) |
10 |
| -* [Input](https://github.com/fluent/fluent-bit-docs/tree/5f926fd1330690179b8c1edab90d672699599ec7/administration/configuring-fluent-bit/file.md#config_input) |
11 |
| -* [Filter](https://github.com/fluent/fluent-bit-docs/tree/5f926fd1330690179b8c1edab90d672699599ec7/administration/configuring-fluent-bit/file.md#config_filter) |
12 |
| -* [Output](https://github.com/fluent/fluent-bit-docs/tree/5f926fd1330690179b8c1edab90d672699599ec7/administration/configuring-fluent-bit/file.md#config_output) |
| 11 | +* Service |
| 12 | +* Input |
| 13 | +* Filter |
| 14 | +* Output |
13 | 15 |
|
14 |
| -In addition there is an additional feature to include external files: |
| 16 | +In addition, it's also possible to split the main configuration file in multiple files using the feature to include external files: |
15 | 17 |
|
16 |
| -* [Include File](https://github.com/fluent/fluent-bit-docs/tree/5f926fd1330690179b8c1edab90d672699599ec7/administration/configuring-fluent-bit/file.md#config_include_file) |
| 18 | +* Include File |
17 | 19 |
|
18 | 20 | ## Service <a id="config_section"></a>
|
19 | 21 |
|
20 | 22 | The _Service_ section defines global properties of the service, the keys available as of this version are described in the following table:
|
21 | 23 |
|
22 |
| -| Key | Description | Default Value | |
23 |
| -| :--- | :--- | :--- | |
24 |
| -| Flush | Set the flush time in seconds. Everytime it timeouts, the engine will flush the records to the output plugin. | 5 | |
25 |
| -| Daemon | Boolean value to set if Fluent Bit should run as a Daemon \(background\) or not. Allowed values are: yes, no, on and off. | Off | |
26 |
| -| Log\_File | Absolute path for an optional log file. | | |
27 |
| -| Log\_Level | Set the logging verbosity level. Allowed values are: error, info, debug and trace. Values are accumulative, e.g: if 'debug' is set, it will include error, info and debug. Note that _trace_ mode is only available if Fluent Bit was built with the _WITH\_TRACE_ option enabled. | info | |
28 |
| -| Parsers\_File | Path for a _parsers_ configuration file. Multiple Parsers\_File entries can be used. | | |
29 |
| -| Plugins\_File | Path for a _plugins_ configuration file. A _plugins_ configuration file allows to define paths for external plugins, for an example [see here](https://github.com/fluent/fluent-bit/blob/master/conf/plugins.conf). | | |
30 |
| -| Streams\_File | Path for the Stream Processor configuration file. For details about the format of SP configuration file [see here](https://github.com/fluent/fluent-bit-docs/tree/5f926fd1330690179b8c1edab90d672699599ec7/administration/configuring-fluent-bit/stream_processor.md). | | |
31 |
| -| HTTP\_Server | Enable built-in HTTP Server | Off | |
32 |
| -| HTTP\_Listen | Set listening interface for HTTP Server when it's enabled | 0.0.0.0 | |
33 |
| -| HTTP\_Port | Set TCP Port for the HTTP Server | 2020 | |
34 |
| -| Coro\_Stack\_Size | Set the coroutines stack size in bytes. The value must be greater than the page size of the running system. Don't set too small value \(say 4096\), or coroutine threads can overrun the stack buffer. | 24576 | |
35 |
| - |
36 |
| -### Example |
| 24 | +<table> |
| 25 | + <thead> |
| 26 | + <tr> |
| 27 | + <th style="text-align:left">Key</th> |
| 28 | + <th style="text-align:left">Description</th> |
| 29 | + <th style="text-align:left">Default Value</th> |
| 30 | + </tr> |
| 31 | + </thead> |
| 32 | + <tbody> |
| 33 | + <tr> |
| 34 | + <td style="text-align:left">Flush</td> |
| 35 | + <td style="text-align:left">Set the flush time in <code>seconds.nanoseconds</code>. The engine loop |
| 36 | + uses a Flush timeout to define when is required to flush the records ingested |
| 37 | + by input plugins through the defined output plugins.</td> |
| 38 | + <td style="text-align:left">5</td> |
| 39 | + </tr> |
| 40 | + <tr> |
| 41 | + <td style="text-align:left">Daemon</td> |
| 42 | + <td style="text-align:left">Boolean value to set if Fluent Bit should run as a Daemon (background) |
| 43 | + or not. Allowed values are: yes, no, on and off. |
| 44 | + <br /> |
| 45 | + <br />note: If you are using a Systemd based unit as the one we provide in our |
| 46 | + packages, do not turn on this option.</td> |
| 47 | + <td style="text-align:left">Off</td> |
| 48 | + </tr> |
| 49 | + <tr> |
| 50 | + <td style="text-align:left">Log_File</td> |
| 51 | + <td style="text-align:left">Absolute path for an optional log file. By default all logs are redirected |
| 52 | + to the standard output interface (stdout).</td> |
| 53 | + <td style="text-align:left"></td> |
| 54 | + </tr> |
| 55 | + <tr> |
| 56 | + <td style="text-align:left">Log_Level</td> |
| 57 | + <td style="text-align:left">Set the logging verbosity level. Allowed values are: error, warning, info, |
| 58 | + debug and trace. Values are accumulative, e.g: if 'debug' is |
| 59 | + set, it will include error, warning, info and debug. |
| 60 | + <br /> |
| 61 | + <br />Note that <em>trace</em> mode is only available if Fluent Bit was built |
| 62 | + with the <em>WITH_TRACE</em> option enabled.</td> |
| 63 | + <td style="text-align:left">info</td> |
| 64 | + </tr> |
| 65 | + <tr> |
| 66 | + <td style="text-align:left">Parsers_File</td> |
| 67 | + <td style="text-align:left">Path for a <code>parsers</code> configuration file. Multiple Parsers_File |
| 68 | + entries can be defined within the section.</td> |
| 69 | + <td style="text-align:left"></td> |
| 70 | + </tr> |
| 71 | + <tr> |
| 72 | + <td style="text-align:left">Plugins_File</td> |
| 73 | + <td style="text-align:left">Path for a <code>plugins</code> configuration file. A <em>plugins</em> configuration |
| 74 | + file allows to define paths for external plugins, for an example <a href="https://github.com/fluent/fluent-bit/blob/master/conf/plugins.conf">see here</a>.</td> |
| 75 | + <td |
| 76 | + style="text-align:left"></td> |
| 77 | + </tr> |
| 78 | + <tr> |
| 79 | + <td style="text-align:left">Streams_File</td> |
| 80 | + <td style="text-align:left">Path for the Stream Processor configuration file. To learn more about |
| 81 | + Stream Processing configuration go <a href="../../stream-processing/stream-processing.md">here</a>.</td> |
| 82 | + <td |
| 83 | + style="text-align:left"></td> |
| 84 | + </tr> |
| 85 | + <tr> |
| 86 | + <td style="text-align:left">HTTP_Server</td> |
| 87 | + <td style="text-align:left">Enable built-in HTTP Server</td> |
| 88 | + <td style="text-align:left">Off</td> |
| 89 | + </tr> |
| 90 | + <tr> |
| 91 | + <td style="text-align:left">HTTP_Listen</td> |
| 92 | + <td style="text-align:left">Set listening interface for HTTP Server when it's enabled</td> |
| 93 | + <td |
| 94 | + style="text-align:left">0.0.0.0</td> |
| 95 | + </tr> |
| 96 | + <tr> |
| 97 | + <td style="text-align:left">HTTP_Port</td> |
| 98 | + <td style="text-align:left">Set TCP Port for the HTTP Server</td> |
| 99 | + <td style="text-align:left">2020</td> |
| 100 | + </tr> |
| 101 | + <tr> |
| 102 | + <td style="text-align:left">Coro_Stack_Size</td> |
| 103 | + <td style="text-align:left"> |
| 104 | + <p>Set the coroutines stack size in bytes. The value must be greater than |
| 105 | + the page size of the running system. Don't set too small value (say |
| 106 | + 4096), or coroutine threads can overrun the stack buffer.</p> |
| 107 | + <p></p> |
| 108 | + <p>Do not change the default value of this parameter unless you know what |
| 109 | + you are doing.</p> |
| 110 | + </td> |
| 111 | + <td style="text-align:left">24576</td> |
| 112 | + </tr> |
| 113 | + </tbody> |
| 114 | +</table>### Example |
37 | 115 |
|
38 | 116 | The following is an example of a _SERVICE_ section:
|
39 | 117 |
|
|
0 commit comments