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: pipeline/outputs/file.md
+30-28Lines changed: 30 additions & 28 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,73 +1,75 @@
1
1
# File
2
2
3
-
The **file** output plugin allows to write the data received through the _input_ plugin to file.
3
+
The _File_ output plugin lets you write the data received through the input plugin to file.
4
4
5
-
## Configuration Parameters
5
+
## Configuration parameters
6
6
7
7
The plugin supports the following configuration parameters:
8
8
9
9
| Key | Description | Default |
10
10
| :--- | :--- | :--- |
11
-
| Path | Directory path to store files. If not set, Fluent Bit will write the files on it's own positioned directory. note: this option was added on Fluent Bit v1.4.6 |
12
-
| File | Set file name to store the records. If not set, the file name will be the _tag_ associated with the records. |
13
-
| Format | The format of the file content. See also Format section. Default: out\_file.|
14
-
| Mkdir | Recursively create output directory if it does not exist. Permissions set to 0755.|
15
-
| Workers | The number of [workers](../../administration/multithreading.md#outputs) to perform flush operations for this output. |`1`|
11
+
|`Path`| Directory path to store files. If not set, Fluent Bit will write the files on it's own positioned directory. Available in Fluent Bit 1.4.6 and later. |_none_|
12
+
|`File`| Set filename to store the records. If not set, the filename will be the `tag` associated with the records.|_none_|
13
+
|`Format`| The [format](#format) of the file content. |`out_file`|
14
+
|`Mkdir`| Recursively create output directory if it doesn't exist. Permissions set to `0755`. |_none_|
15
+
|`Workers`| The number of [workers](../../administration/multithreading.md#outputs) to perform flush operations for this output. |`1`|
16
16
17
17
## Format
18
18
19
-
### out\_file format
19
+
This plugin uses the following formats:
20
20
21
-
Output time, tag and json records. There is no configuration parameters for out\_file.
21
+
### `out_file`
22
+
23
+
Output `time`, `tag`, and `json` records. There are no configuration parameters for `out_file`.
Output the records as csv. Csv supports an additional configuration parameter.
39
+
Output the records in CSV format. CSV mode supports an additional configuration parameter.
38
40
39
41
| Key | Description |
40
42
| :--- | :--- |
41
-
| Delimiter | The character to separate each data. Accepted values are "\t" (or "tab"), "space" or "comma". Other values are ignored and will use default silently. Default: ','|
43
+
|`Delimiter`| The character to separate each data. Accepted values: `\t` (or `tab`), `` (`space`), or `,` (`comma`). Other values are ignored and will use default silently. Default: `,`|
0 commit comments