Skip to content

Commit

Permalink
Merge pull request fluent#18 from nokute78/out_file
Browse files Browse the repository at this point in the history
output: file: add documentation for out_file
  • Loading branch information
edsiper authored Mar 27, 2017
2 parents 0bc82cf + 1095475 commit 79706fe
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 1 deletion.
1 change: 1 addition & 0 deletions SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
* [Kubernetes](filter/kubernetes.md)
* [Output Plugins](output/README.md)
* [Elasticsearch](output/elasticsearch.md)
* [File](output/file.md)
* [FlowCounter](output/flowcounter.md)
* [Forward](output/forward.md)
* [HTTP](output/http.md)
Expand Down
3 changes: 2 additions & 1 deletion output/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ The _output plugins_ defines where [Fluent Bit](http://fluentbit.io) should flus

| name | title | description |
|---------------------------|--------------------|-----------------|
| [flowcounter](flowcounter.md)| FlowCounter | Count records |
| [file](file.md) | File | flush records to a file. |
| [flowcounter](flowcounter.md)| FlowCounter | Count records. |
| [forward](forward.md) | Forward | Fluentd forward protocol. |
| [http](http.md) | HTTP | Flush records to an HTTP end point. |
| [influxdb](influxdb.md) | InfluxDB | Flush records to InfluxDB time series database. |
Expand Down
38 changes: 38 additions & 0 deletions output/file.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# File

The __file__ output plugin allows to write the data received through the _input_ plugin to file.

## Configuration Parameters

The plugin supports the following configuration parameters:

| Key | Description |
|------|-------------|
| Path | File path to output. If not set, the filename will be tag name.|

## Getting Started

You can run the plugin from the command line or through the configuration file:

### Command Line

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

```bash
$ fluent-bit -i cpu -o file -p path=output.txt
```

### Configuration File

In your main configuration file append the following Input & Output sections:

```python
[INPUT]
Name cpu
Tag cpu

[OUTPUT]
Name file
Match *
Path output.txt
```

0 comments on commit 79706fe

Please sign in to comment.