{"action":"created","issue":{"url":"https://api.github.com/repos/logstash-plugins/logstash-output-influxdb/issues/5","labels_url":"https://api.github.com/repos/logstash-plugins/logstash-output-influxdb/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/logstash-plugins/logstash-output-influxdb/issues/5/comments","events_url":"https://api.github.com/repos/logstash-plugins/logstash-output-influxdb/issues/5/events","html_url":"https://github.com/logstash-plugins/logstash-output-influxdb/issues/5","id":53771340,"number":5,"title":"influxdb outgoing plugin failed to flush outgoing items in logstash-1.5.0.beta1-1","user":{"login":"evgygor","id":10452376,"avatar_url":"https://avatars.githubusercontent.com/u/10452376?v=3","gravatar_id":"","url":"https://api.github.com/users/evgygor","html_url":"https://github.com/evgygor","followers_url":"https://api.github.com/users/evgygor/followers","following_url":"https://api.github.com/users/evgygor/following{/other_user}","gists_url":"https://api.github.com/users/evgygor/gists{/gist_id}","starred_url":"https://api.github.com/users/evgygor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evgygor/subscriptions","organizations_url":"https://api.github.com/users/evgygor/orgs","repos_url":"https://api.github.com/users/evgygor/repos","events_url":"https://api.github.com/users/evgygor/events{/privacy}","received_events_url":"https://api.github.com/users/evgygor/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-01-08T16:41:19Z","updated_at":"2015-03-24T06:32:04Z","closed_at":null,"body":"I'm using logstash-1.5.0.beta1-1.\r\nThe following errors appears in log file:\r\n\r\n{:timestamp=>\"2015-01-08T17:23:38.518000+0200\", :message=>\"Failed to flush outgoing items\", :outgoing_count=>100, :exception=>#<NoMethodError: undefined method `to_json' for #<Array:0x1b9a67a3>>, :backtrace=>[\"/opt/logstash/lib/logstash/outputs/influxdb.rb:191:in `flush'\", \"/opt/logstash/vendor/bundle/jruby/1.9/gems/stud-0.0.18/lib/stud/buffer.rb:219:in `buffer_flush'\", \"org/jruby/RubyHash.java:1341:in `each'\", \"/opt/logstash/vendor/bundle/jruby/1.9/gems/stud-0.0.18/lib/stud/buffer.rb:216:in `buffer_flush'\", \"/opt/logstash/vendor/bundle/jruby/1.9/gems/stud-0.0.18/lib/stud/buffer.rb:193:in `buffer_flush'\", \"/opt/logstash/vendor/bundle/jruby/1.9/gems/stud-0.0.18/lib/stud/buffer.rb:159:in `buffer_receive'\", \"/opt/logstash/lib/logstash/outputs/influxdb.rb:156:in `receive'\", \"/opt/logstash/lib/logstash/outputs/base.rb:86:in `handle'\", \"(eval):255:in `initialize'\", \"org/jruby/RubyArray.java:1613:in `each'\", \"org/jruby/RubyEnumerable.java:805:in `flat_map'\", \"(eval):252:in `initialize'\", \"org/jruby/RubyProc.java:271:in `call'\", \"/opt/logstash/lib/logstash/pipeline.rb:272:in `output'\", \"/opt/logstash/lib/logstash/pipeline.rb:231:in `outputworker'\", \"/opt/logstash/lib/logstash/pipeline.rb:160:in `start_outputs'\"], :level=>:warn}\r\n\r\n\r\nMy conf file:\r\ninput {\r\n\tfile {\r\n\t\tpath => [ \"/opt/jmeter/bin/attsec.csv\"]\r\n\t\tstart_position => \"beginning\"\r\n\t\ttype => \"jmeter\"\r\n\t}\r\n}\r\n\r\nfilter {\r\n\tif ([message] =~ \"responseCode\") {\r\n\t\tdrop { }\r\n\t} else {\r\n\t\tcsv {\r\n\t\t\tcolumns => [\"timeStamp\",\"elapsed\",\"label\",\"responseCode\",\"responseMessage\",\r\n\t\t\t\"threadName\",\"success\",\"failureMessage\",\"bytes\",\"Latency\",\r\n\t\t\t\"SampleCount\",\"ErrorCount\",\"Hostname\",\"IdleTime\"]\r\n\t\t\tremove_field => [\"timeStamp\",\"responseMessage\",\"threadName\",\"failureMessage\",\r\n\t\t\t\"SampleCount\",\"ErrorCount\",\"Hostname\"]\r\n\t\t\tadd_field => {\r\n\t\t\t\t\"time\" => \"%{timeStamp}\"\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}\r\n\r\noutput {\r\n\tinfluxdb {\r\n\t\thost => \"172.20.90.72\"\r\n\t\tpassword => \"root\"\r\n\t\tuser => \"root\"\r\n\t\tdb => \"metrics\"\r\n\t\tseries => \"%{label}\"\r\n\t\tallow_time_override => true\r\n\t\ttime_precision => \"m\"\r\n\t\tcoerce_values => {\r\n\t\t\t\"time\" => \"integer\"\r\n\t\t\t\"elapsed\" => \"integer\"\r\n\t\t\t\"Latency\" => \"integer\"\r\n\t\t\t\"bytes\" => \"integer\"\r\n\t\t\t\"IdleTime\" => \"integer\"\r\n\t\t}\r\n\t\tdata_points => {\r\n\t\t\t\"time\"    => \"%{time}\"\r\n\t\t\t\"elapsed\" => \"%{elapsed}\"\r\n\t\t\t\"Latency\" => \"%{Latency}\"\r\n\t\t\t\"bytes\" => \"%{bytes}\"\r\n\t\t\t\"IdleTime\" => \"%{IdleTime}\"\r\n\t\t\t\"responseCode\" => \"%{responseCode}\"\r\n\t\t\t\"success\" => \"%{success}\"\r\n\t\t}\r\n\t}\r\n}"},"comment":{"url":"https://api.github.com/repos/logstash-plugins/logstash-output-influxdb/issues/comments/85362565","html_url":"https://github.com/logstash-plugins/logstash-output-influxdb/issues/5#issuecomment-85362565","issue_url":"https://api.github.com/repos/logstash-plugins/logstash-output-influxdb/issues/5","id":85362565,"user":{"login":"evgygor","id":10452376,"avatar_url":"https://avatars.githubusercontent.com/u/10452376?v=3","gravatar_id":"","url":"https://api.github.com/users/evgygor","html_url":"https://github.com/evgygor","followers_url":"https://api.github.com/users/evgygor/followers","following_url":"https://api.github.com/users/evgygor/following{/other_user}","gists_url":"https://api.github.com/users/evgygor/gists{/gist_id}","starred_url":"https://api.github.com/users/evgygor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evgygor/subscriptions","organizations_url":"https://api.github.com/users/evgygor/orgs","repos_url":"https://api.github.com/users/evgygor/repos","events_url":"https://api.github.com/users/evgygor/events{/privacy}","received_events_url":"https://api.github.com/users/evgygor/received_events","type":"User","site_admin":false},"created_at":"2015-03-24T06:32:04Z","updated_at":"2015-03-24T06:32:04Z","body":" logstash 1.2 rc2 ? not 1.5?"}}