Skip to content

Commit 1622f33

Browse files
authored
Merge pull request #1936 from fluent/lynettemiles/sc-136238/update-fluent-bit-docs-pipeline-outputs-file
2 parents 09db4a2 + 36cce9c commit 1622f33

File tree

2 files changed

+32
-28
lines changed

2 files changed

+32
-28
lines changed

pipeline/outputs/file.md

Lines changed: 30 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,73 +1,75 @@
11
# File
22

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.
44

5-
## Configuration Parameters
5+
## Configuration parameters
66

77
The plugin supports the following configuration parameters:
88

99
| Key | Description | Default |
1010
| :--- | :--- | :--- |
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` |
1616

1717
## Format
1818

19-
### out\_file format
19+
This plugin uses the following formats:
2020

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`.
2224

2325
```text
2426
tag: [time, {"key1":"value1", "key2":"value2", "key3":"value3"}]
2527
```
2628

27-
### plain format
29+
### Plain
2830

29-
Output the records as JSON \(without additional `tag` and `timestamp` attributes\). There is no configuration parameters for plain format.
31+
Output the records as JSON (without additional `tag` and `timestamp` attributes). There are no configuration parameters for plain format.
3032

3133
```json
3234
{"key1":"value1", "key2":"value2", "key3":"value3"}
3335
```
3436

35-
### csv format
37+
### CSV
3638

37-
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.
3840

3941
| Key | Description |
4042
| :--- | :--- |
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: `,` |
4244

4345
```text
4446
time[delimiter]"value1"[delimiter]"value2"[delimiter]"value3"
4547
```
4648

47-
### ltsv format
49+
### LTSV
4850

49-
Output the records as LTSV. LTSV supports an additional configuration parameter.
51+
Output the records in LTSV format. LTSV mode supports an additional configuration parameter.
5052

5153
| Key | Description |
5254
| :--- | :--- |
53-
| Delimiter | The character to separate each pair. Default: '\t'\(TAB\) |
54-
| Label\_Delimiter | The character to separate label and the value. Default: ':' |
55+
| `Delimiter` | The character to separate each pair. Default: `t` (`TAB`) |
56+
| `Label_Delimiter` | The character to separate label and the value. Default: `:` |
5557

5658
```text
5759
field1[label_delimiter]value1[delimiter]field2[label_delimiter]value2\n
5860
```
5961

60-
### template format
62+
### Template
6163

6264
Output the records using a custom format template.
6365

6466
| Key | Description |
6567
| :--- | :--- |
66-
| Template | The format string. Default: '{time} {message}' |
68+
| Template | The format string. Default: `{time} {message}` |
6769

6870
This accepts a formatting template and fills placeholders using corresponding values in a record.
6971

70-
For example, if you set up the configuration as below:
72+
For example, if you set up the configuration like the following:
7173

7274
{% tabs %}
7375
{% tab title="fluent-bit.yaml" %}
@@ -76,7 +78,7 @@ For example, if you set up the configuration as below:
7678
pipeline:
7779
inputs:
7880
- name: mem
79-
81+
8082
outputs:
8183
- name: file
8284
match: '*'
@@ -107,19 +109,19 @@ You will get the following output:
107109
1564462620.000254 used=1045448 free=31760160 total=32805608
108110
```
109111

110-
## Getting Started
112+
## Get started
111113

112-
You can run the plugin from the command line or through the configuration file:
114+
You can run the plugin from the command line or through the configuration file.
113115

114-
### Command Line
116+
### Command line
115117

116118
From the command line you can let Fluent Bit count up a data with the following options:
117119

118120
```shell
119121
fluent-bit -i cpu -o file -p path=output.txt
120122
```
121123

122-
### Configuration File
124+
### Configuration file
123125

124126
In your main configuration file append the following:
125127

@@ -131,7 +133,7 @@ pipeline:
131133
inputs:
132134
- name: cpu
133135
tag: cpu
134-
136+
135137
outputs:
136138
- name: file
137139
match: '*'
@@ -153,4 +155,4 @@ pipeline:
153155
```
154156

155157
{% endtab %}
156-
{% endtabs %}
158+
{% endtabs %}

vale-styles/FluentBit/Headings.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ exceptions:
2626
- Collector
2727
- Cosmos
2828
- Crowdstrike
29+
- CSV
2930
- cURL
3031
- Datadog
3132
- Docker
@@ -52,6 +53,7 @@ exceptions:
5253
- Kubernetes
5354
- LaunchDarkly
5455
- Linux
56+
- LTSV
5557
- macOS
5658
- Marketplace
5759
- MongoDB

0 commit comments

Comments
 (0)