logstash-plugins / logstash-output-influxdb

Apache License 2.0
58 stars 79 forks source link

monitor logstash through influxdb #74

Open bdshibly opened 6 years ago

bdshibly commented 6 years ago

I am trying to configure logstash-output-influxdb to monitor logstash indexes through influxdb. My logstash configuration file is

output {
  influxdb {
    codec => json
    db => "telegraf"
    flush_size => 500
    host => "localhost"
    port => 8086
    user => admin
    password => "admin"
    use_event_fields_for_data_points => false
    data_points => {}
    coerce_values => {
      "type" => "string"
    }
    send_as_tags => ["type"]
  }
  stdout {codec => json}
}

But I'm receiving the following error

[2017-10-27T21:21:42,914][WARN ][logstash.outputs.influxdb] Non recoverable exception while writing to InfluxDB {:exception=>#<InfluxDB::Error: {"error":"unable to parse 'logstash 1509139302540': invalid field format"}

How can I resolve the issue?

Cheers Ferdous Shibly