{"action":"closed","issue":{"url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/issues/52","repository_url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch","labels_url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/issues/52/labels{/name}","comments_url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/issues/52/comments","events_url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/issues/52/events","html_url":"https://github.com/logstash-plugins/logstash-output-elasticsearch/issues/52","id":56877075,"number":52,"title":"elasticsearch output fails on some inputs","user":{"login":"suyograo","id":1595958,"avatar_url":"https://avatars.githubusercontent.com/u/1595958?v=3","gravatar_id":"","url":"https://api.github.com/users/suyograo","html_url":"https://github.com/suyograo","followers_url":"https://api.github.com/users/suyograo/followers","following_url":"https://api.github.com/users/suyograo/following{/other_user}","gists_url":"https://api.github.com/users/suyograo/gists{/gist_id}","starred_url":"https://api.github.com/users/suyograo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/suyograo/subscriptions","organizations_url":"https://api.github.com/users/suyograo/orgs","repos_url":"https://api.github.com/users/suyograo/repos","events_url":"https://api.github.com/users/suyograo/events{/privacy}","received_events_url":"https://api.github.com/users/suyograo/received_events","type":"User","site_admin":false},"labels":[{"id":174561705,"url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/labels/jira-migrated","name":"jira-migrated","color":"d4c5f9","default":false}],"state":"closed","locked":false,"assignee":{"login":"talevy","id":388837,"avatar_url":"https://avatars.githubusercontent.com/u/388837?v=3","gravatar_id":"","url":"https://api.github.com/users/talevy","html_url":"https://github.com/talevy","followers_url":"https://api.github.com/users/talevy/followers","following_url":"https://api.github.com/users/talevy/following{/other_user}","gists_url":"https://api.github.com/users/talevy/gists{/gist_id}","starred_url":"https://api.github.com/users/talevy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/talevy/subscriptions","organizations_url":"https://api.github.com/users/talevy/orgs","repos_url":"https://api.github.com/users/talevy/repos","events_url":"https://api.github.com/users/talevy/events{/privacy}","received_events_url":"https://api.github.com/users/talevy/received_events","type":"User","site_admin":false},"assignees":[{"login":"talevy","id":388837,"avatar_url":"https://avatars.githubusercontent.com/u/388837?v=3","gravatar_id":"","url":"https://api.github.com/users/talevy","html_url":"https://github.com/talevy","followers_url":"https://api.github.com/users/talevy/followers","following_url":"https://api.github.com/users/talevy/following{/other_user}","gists_url":"https://api.github.com/users/talevy/gists{/gist_id}","starred_url":"https://api.github.com/users/talevy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/talevy/subscriptions","organizations_url":"https://api.github.com/users/talevy/orgs","repos_url":"https://api.github.com/users/talevy/repos","events_url":"https://api.github.com/users/talevy/events{/privacy}","received_events_url":"https://api.github.com/users/talevy/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2015-02-06T22:28:21Z","updated_at":"2016-10-28T21:44:08Z","closed_at":"2016-10-28T21:44:08Z","body":"migrated from https://logstash.jira.com/browse/LOGSTASH-2107\n\nwith this json, reading in from file, and outputting to elasticsearch:\n\n```\n{\"message\":\"test\",\"@version\":\"1\",\"@timestamp\":\"2014-04-08T14:12:00.000+02:00\",\"type\":[\"cdn_access_log\",\"ys-ssvod\"],\"tags\":[\"cdn\"],\"host\":\"Casper-VAIO\",\"path\":\"c:/Temp/Java/logstash/we_accesslog_apache\",\"message_id\":\"mpJdW+Q8Q0xYv1Ha0bBNmB5LTps=\",\"bytes-sent\":32475,\"object-size\":32031,\"bytes-recvd\":356,\"method\":\"GET\",\"status\":200,\"time-recvd\":\"08/Apr/2014:14:12:00+0200\",\"time-to-serve\":1875}\n(note that type was set by a mistake by a developer here - to an array \nHowever, instead of logstash completely halting reading of data.. I'd prefer it to log the line that breaks it, and continue.. it logs this:\n{:timestamp=>\"2014-04-09T10:02:42.456000+0200\", :message=>\"Failed to flush outgoing items\", :outgoing_count=>1, :exception=>#<NameError: no method 'type' for arguments (org.jruby.RubyArray) on Java::OrgElasticsearchActionIndex::IndexRequest>, :backtrace=>[\"/usr/share/logstash/lib/logstash/outputs/elasticsearch/protocol.rb:225:in `build_request'\", \"/usr/share/logstash/lib/logstash/outputs/elasticsearch/protocol.rb:205:in `bulk'\", \"org/jruby/RubyArray.java:1613:in `each'\", \"/usr/share/logstash/lib/logstash/outputs/elasticsearch/protocol.rb:204:in `bulk'\", \"/usr/share/logstash/lib/logstash/outputs/elasticsearch.rb:331:in `flush'\", \"/usr/share/logstash/vendor/bundle/jruby/1.9/gems/stud-0.0.17/lib/stud/buffer.rb:219:in `buffer_flush'\", \"org/jruby/RubyHash.java:1339:in `each'\", \"/usr/share/logstash/vendor/bundle/jruby/1.9/gems/stud-0.0.17/lib/stud/buffer.rb:216:in `buffer_flush'\", \"/usr/share/logstash/vendor/bundle/jruby/1.9/gems/stud-0.0.17/lib/stud/buffer.rb:112:in `buffer_initialize'\", \"org/jruby/RubyKernel.java:1521:in `loop'\", \"/usr/share/logstash/vendor/bundle/jruby/1.9/gems/stud-0.0.17/lib/stud/buffer.rb:110:in `buffer_initialize'\"], :level=>:warn}\n```\n"}}
{"actor":{"display_login":"jordansissel"}}