forked from fluent/fluent-bit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request fluent#18 from nokute78/out_file
output: file: add documentation for out_file
- Loading branch information
Showing
3 changed files
with
41 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
``` |