File tree 3 files changed +41
-1
lines changed
3 files changed +41
-1
lines changed Original file line number Diff line number Diff line change 49
49
* [ Kubernetes] ( filter/kubernetes.md )
50
50
* [ Output Plugins] ( output/README.md )
51
51
* [ Elasticsearch] ( output/elasticsearch.md )
52
+ * [ File] ( output/file.md )
52
53
* [ FlowCounter] ( output/flowcounter.md )
53
54
* [ Forward] ( output/forward.md )
54
55
* [ HTTP] ( output/http.md )
Original file line number Diff line number Diff line change @@ -4,7 +4,8 @@ The _output plugins_ defines where [Fluent Bit](http://fluentbit.io) should flus
4
4
5
5
| name | title | description |
6
6
| ---------------------------| --------------------| -----------------|
7
- | [ flowcounter] ( flowcounter.md ) | FlowCounter | Count records |
7
+ | [ file] ( file.md ) | File | flush records to a file. |
8
+ | [ flowcounter] ( flowcounter.md ) | FlowCounter | Count records. |
8
9
| [ forward] ( forward.md ) | Forward | Fluentd forward protocol. |
9
10
| [ http] ( http.md ) | HTTP | Flush records to an HTTP end point. |
10
11
| [ influxdb] ( influxdb.md ) | InfluxDB | Flush records to InfluxDB time series database. |
Original file line number Diff line number Diff line change
1
+ # File
2
+
3
+ The __ file__ output plugin allows to write the data received through the _ input_ plugin to file.
4
+
5
+ ## Configuration Parameters
6
+
7
+ The plugin supports the following configuration parameters:
8
+
9
+ | Key | Description |
10
+ | ------| -------------|
11
+ | Path | File path to output. If not set, the filename will be tag name.|
12
+
13
+ ## Getting Started
14
+
15
+ You can run the plugin from the command line or through the configuration file:
16
+
17
+ ### Command Line
18
+
19
+ From the command line you can let Fluent Bit count up a data with the following options:
20
+
21
+ ``` bash
22
+ $ fluent-bit -i cpu -o file -p path=output.txt
23
+ ```
24
+
25
+ ### Configuration File
26
+
27
+ In your main configuration file append the following Input & Output sections:
28
+
29
+ ``` python
30
+ [INPUT ]
31
+ Name cpu
32
+ Tag cpu
33
+
34
+ [OUTPUT ]
35
+ Name file
36
+ Match *
37
+ Path output.txt
38
+ ```
You can’t perform that action at this time.
0 commit comments