2018-05-05 01:27:31 +00:00
|
|
|
# Output Data Formats
|
2016-02-12 22:09:34 +00:00
|
|
|
|
2018-05-05 01:27:31 +00:00
|
|
|
In addition to output specific data formats, Telegraf supports a set of
|
|
|
|
standard data formats that may be selected from when configuring many output
|
|
|
|
plugins.
|
2016-04-08 22:04:45 +00:00
|
|
|
|
2018-09-17 18:45:08 +00:00
|
|
|
1. [InfluxDB Line Protocol](/plugins/serializers/influx)
|
|
|
|
1. [JSON](/plugins/serializers/json)
|
|
|
|
1. [Graphite](/plugins/serializers/graphite)
|
|
|
|
1. [SplunkMetric](/plugins/serializers/splunkmetric)
|
2016-04-08 22:04:45 +00:00
|
|
|
|
2018-05-05 01:27:31 +00:00
|
|
|
You will be able to identify the plugins with support by the presence of a
|
|
|
|
`data_format` config option, for example, in the `file` output plugin:
|
2016-02-12 22:09:34 +00:00
|
|
|
|
|
|
|
```toml
|
|
|
|
[[outputs.file]]
|
2016-02-18 21:26:51 +00:00
|
|
|
## Files to write to, "stdout" is a specially handled file.
|
2018-09-17 18:45:08 +00:00
|
|
|
files = ["stdout"]
|
2016-02-12 22:09:34 +00:00
|
|
|
|
2016-04-08 22:04:45 +00:00
|
|
|
## Data format to output.
|
2017-04-27 21:59:18 +00:00
|
|
|
## Each data format has its own unique set of configuration options, read
|
2016-02-18 21:26:51 +00:00
|
|
|
## more about them here:
|
|
|
|
## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md
|
2016-02-12 22:09:34 +00:00
|
|
|
data_format = "influx"
|
2018-05-05 01:27:31 +00:00
|
|
|
```
|