logstash-plugins / logstash-output-influxdb

Apache License 2.0
58 stars 79 forks source link

Unknown setting 'use_event_fields_for_data_points' for influxdb #72

Closed ghost closed 6 years ago

ghost commented 6 years ago

Hi All,

I'm using Logstash to manipulate the output of Telegraf before sending the information to InfluxDB. Here is an example event after filters (rubydebug output):

{
        "fields" => {
        "Percent_User_Time" => 2.3403491973876953
    },
          "name" => "win_cpu",
          "tags" => {
              "host" => "OSTPMCWEB",
          "instance" => "0",
        "objectname" => "Processor"
    },
     "timestamp" => 1507287310,
      "@version" => "1",
    "@timestamp" => "2017-10-06T10:55:14.002Z",
          "host" => "10.184.40.204"
}

Im trying to use the influxdb output plugin as below:

 influxdb {
                        data_points =>{}
                        use_event_fields_for_data_points => "true"
                        exclude_fields => ["@timestamp", "@version", "host"]
                        port => ####
                        host => "xxx.xxx.com"
                        db => "TL_TEST"
                }

Yet getting the error:

Unknown setting 'use_event_fields_for_data_points' for influxdb {:level=>:error}
Unknown setting 'exclude_fields' for influxdb {:level=>:error}

Anyone have any pointers?

jsvd commented 6 years ago

which version of the plugin are you using? any version >= 3.0.0 should support these two fields

ghost commented 6 years ago

Think I found an alternative solution as I had to have more robust parsing. But will be sure to upgrade in the future.