fangli / fluent-plugin-influxdb

A buffered output plugin for fluentd and InfluxDB
MIT License
111 stars 65 forks source link

Does plugin use line protocol for json format source? #76

Closed shaunwarman closed 7 years ago

shaunwarman commented 7 years ago

I am trying to use the fluentd docker log driver. I write stdout as json and have fluentd forward that to influxdb using this plugin.

fluentd.conf

<source>
  @type forward
  format json
  port 24224
</source>

<match **>
  @type influxdb
  host  influxdb
  port  8086
  dbname test
  user  admin
  password  admin
  use_ssl false
  measurement pingdom
  flush_interval 1s
</match>

It seems as though it just forwards the json that it gets from docker. Most like because of the source setup, but since current influxdb only supports line protocol, how can we we forward from a source of json and have fluentd format that to line protocol?