Skip to content

Commit e100ff5

Browse files
authored
docs: outputs: file: general doc update and cleanup (#2431)
- Lowercase Key column entries - Sort configuration parameters table alphabetically - Fix mkdir default: _none_ -> false - Fix format default: "out_file" -> _none_ - Fix grammar: "it's own" -> "its own" - Remove redundant intro sentence - Add missing csv_column_names parameter to CSV format section - Lowercase Key column in sub-tables - Add Default column to all format sub-tables - Fix LTSV delimiter default: "t (TAB)" -> "\t" for precision - Fix plural form in CSV and LTSV format descriptions Applies to #2412 Signed-off-by: Eric D. Schabell <eric@schabell.org>
1 parent 5954fdd commit e100ff5

1 file changed

Lines changed: 18 additions & 19 deletions

File tree

pipeline/outputs/file.md

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,13 @@ The _File_ output plugin lets you write the data received through the input plug
44

55
## Configuration parameters
66

7-
The plugin supports the following configuration parameters:
8-
97
| Key | Description | Default |
108
| :--- | :--- | :--- |
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` |
9+
| `file` | Set filename to store the records. If not set, the filename will be the `tag` associated with the records. | _none_ |
10+
| `format` | The [format](#format) of the file content. | _none_ |
11+
| `mkdir` | Recursively create output directory if it doesn't exist. Permissions set to `0755`. | `false` |
12+
| `path` | Directory path to store files. If not set, Fluent Bit will write the files in its own working directory. | _none_ |
13+
| `workers` | The number of [workers](../../administration/multithreading.md#outputs) to perform flush operations for this output. | `1` |
1614

1715
## Format
1816

@@ -36,24 +34,25 @@ Output the records as JSON (without additional `tag` and `timestamp` attributes)
3634

3735
### CSV
3836

39-
Output the records in CSV format. CSV mode supports an additional configuration parameter.
37+
Output the records in CSV format. CSV mode supports additional configuration parameters.
4038

41-
| Key | Description |
42-
| :--- | :--- |
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: `,` |
39+
| Key | Description | Default |
40+
| :--- | :--- | :--- |
41+
| `csv_column_names` | Add column names (keys) as the first line of the output file. | `false` |
42+
| `delimiter` | The character to separate each field. Accepted values: `\t` (or `tab`), ` ` (`space`), or `,` (`comma`). Other values are ignored and fall back to the default. | `,` |
4443

4544
```text
4645
time[delimiter]"value1"[delimiter]"value2"[delimiter]"value3"
4746
```
4847

4948
### LTSV
5049

51-
Output the records in LTSV format. LTSV mode supports an additional configuration parameter.
50+
Output the records in LTSV format. LTSV mode supports additional configuration parameters.
5251

53-
| Key | Description |
54-
| :--- | :--- |
55-
| `Delimiter` | The character to separate each pair. Default: `t` (`TAB`) |
56-
| `Label_Delimiter` | The character to separate label and the value. Default: `:` |
52+
| Key | Description | Default |
53+
| :--- | :--- | :--- |
54+
| `delimiter` | The character to separate each pair. | `\t` |
55+
| `label_delimiter` | The character to separate label and the value. | `:` |
5756

5857
```text
5958
field1[label_delimiter]value1[delimiter]field2[label_delimiter]value2\n
@@ -63,9 +62,9 @@ field1[label_delimiter]value1[delimiter]field2[label_delimiter]value2\n
6362

6463
Output the records using a custom format template.
6564

66-
| Key | Description |
67-
| :--- | :--- |
68-
| Template | The format string. Default: `{time} {message}` |
65+
| Key | Description | Default |
66+
| :--- | :--- | :--- |
67+
| `template` | The format string. | `{time} {message}` |
6968

7069
This accepts a formatting template and fills placeholders using corresponding values in a record.
7170

0 commit comments

Comments
 (0)