Skip to content

Commit

Permalink
Merge pull request fluent#22 from nokute78/csv_fmt
Browse files Browse the repository at this point in the history
out_file: add description about file format
  • Loading branch information
edsiper authored Apr 27, 2017
2 parents d9333c8 + 0f08bf6 commit 9bd66fc
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions output/file.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,30 @@ The plugin supports the following configuration parameters:
| Key | Description |
|------|-------------|
| Path | File path to output. If not set, the filename will be tag name.|
| Format | The format of the file content. See also Format section. Default: out_file.|

## Format

### out_file format

Output time, tag and json records. There is no configuration parameters for out_file.

```json
tag: [time, {"key1":"value1", "key2":"value2", "key3":"value3"}]
```

### csv format

Output the records as csv. Csv supports an additional configuration parameter.

| Key | Description |
|------|-------------|
| Delimiter | The character to separate each data. Default: ','|


```python
time[delimiter]"value1"[delimiter]"value2"[delimiter]"value3"
```

## Getting Started

Expand Down

0 comments on commit 9bd66fc

Please sign in to comment.