Logstash cannot connect to InfluxDB

I am using the logstash-output-influxdb plugin to send some of our log data to InfluxDB. I have this configured like so:

influxdb {
        data_points => {
          "duration" => "%{data.event.duration}"
        host => 'azsbgraph01'
        password => ''
        user => ''
        db => 'elk'

However I get an error in the Logstash logs when it tries to send data to InfluxDB:

2015-09-03_12:08:58.37375 {:timestamp=>"2015-09-03T12:08:58.373000+0000", :message=>"Error writing to InfluxDB", :response=>#<FTW::Response:0x667d0aa0 @reason="Not Found", @version=1.1, @headers=FTW::HTTP::Headers <{"content-type"=>"text/plain; charset=utf-8", "date"=>"Thu, 03 Sep 2015 12:08:58 GMT", "content-length"=>"19"}>, @body=<FTW::Connection(@13550) @destinations=["influxdb01:8086"] @connected=true @remote_address="" @secure=false >, @logger=#<Cabin::Channel:0x3296ec91 @metrics=#<Cabin::Metrics:0xd9e0c98 @metrics_lock=#<Mutex:0x65beee4>, @metrics={}, @channel=#<Cabin::Channel:0x3296ec91 ...>>, @subscriber_lock=#<Mutex:0x57730158>, @level=:info, @subscribers={}, @data={}>, @status=404>, :response_body=>"404 page not found\n", :request_body=>"", :level=>:error}

Not sure where this is falling over, any pointers?

Can you check your Influx logs to see if there is anything?

Yeah something is screwy with the plugin, I did curl -i -XPOST '' --data-binary 'cpu_load_short,host=server01,region=us-west value=0.64 1434055562000000000' and it worked fine. Nothing in the influxdb logs at all.

@NeckBeardPrince what version of InfluxDB are you running?

The API changed in 0.9, and if the logtash plugin is still using 0.8 API then you could hit this error (c.f. https://github.com/influxdb/influxdb/issues/2032)

It looks like there's an outstanding PR on the plugin to make it 0.9 compatible: https://github.com/logstash-plugins/logstash-output-influxdb/pull/29 (related issue: https://github.com/logstash-plugins/logstash-output-influxdb/issues/24)

I am using influxdb_0.10.0-1 version. When i try to post a hardcoded value via my logstash.conf, it gives me Page not found error.
My logstash.conf has following output section:
output {
influxdb {
password => "root"
user => "root"
data_points =>{"value"=>"0.7"}

Any pointers in resolving this will be appreciated.