{"action":"created","issue":{"url":"https://api.github.com/repos/logstash-plugins/logstash-input-elasticsearch/issues/50","repository_url":"https://api.github.com/repos/logstash-plugins/logstash-input-elasticsearch","labels_url":"https://api.github.com/repos/logstash-plugins/logstash-input-elasticsearch/issues/50/labels{/name}","comments_url":"https://api.github.com/repos/logstash-plugins/logstash-input-elasticsearch/issues/50/comments","events_url":"https://api.github.com/repos/logstash-plugins/logstash-input-elasticsearch/issues/50/events","html_url":"https://github.com/logstash-plugins/logstash-input-elasticsearch/issues/50","id":182608011,"number":50,"title":"switch from scan to scroll","user":{"login":"djschny","id":129643,"avatar_url":"https://avatars.githubusercontent.com/u/129643?v=3","gravatar_id":"","url":"https://api.github.com/users/djschny","html_url":"https://github.com/djschny","followers_url":"https://api.github.com/users/djschny/followers","following_url":"https://api.github.com/users/djschny/following{/other_user}","gists_url":"https://api.github.com/users/djschny/gists{/gist_id}","starred_url":"https://api.github.com/users/djschny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djschny/subscriptions","organizations_url":"https://api.github.com/users/djschny/orgs","repos_url":"https://api.github.com/users/djschny/repos","events_url":"https://api.github.com/users/djschny/events{/privacy}","received_events_url":"https://api.github.com/users/djschny/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/logstash-plugins/logstash-input-elasticsearch/labels/bug","name":"bug","color":"e11d21"},{"url":"https://api.github.com/repos/logstash-plugins/logstash-input-elasticsearch/labels/P1","name":"P1","color":"000000"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-12T19:07:48Z","updated_at":"2016-10-13T16:20:13Z","closed_at":null,"body":"- Version: v5.0.0-rc1\r\n- Operating System: Mac 10.12\r\n\r\nUsing a simple config:\r\n```\r\ninput { elasticsearch { index => \"citibike-trips\" } }\r\nfilter {}\r\noutput { stdout { codec => \"rubydebug\" } }\r\n```\r\n\r\nThe following error is thrown:\r\n\r\n```\r\n[2016-10-12T14:52:39,634][ERROR][logstash.pipeline        ] A plugin had an unrecoverable error. Will restart this plugin.\r\n  Plugin: <LogStash::Inputs::Elasticsearch index=>\"citibike-trips\", id=>\"ca1129a233dae70a186b30f08aa829bac64b30e0-1\", enable_metric=>true, codec=><LogStash::Codecs::JSON id=>\"json_1d4cf6cb-7ca6-4404-a9d7-96fde965269b\", enable_metric=>true, charset=>\"UTF-8\">, query=>\"{\\\"query\\\": { \\\"match_all\\\": {} } }\", scan=>true, size=>1000, scroll=>\"1m\", docinfo=>false, docinfo_target=>\"@metadata\", docinfo_fields=>[\"_index\", \"_type\", \"_id\"], ssl=>false>\r\n  Error: [400] {\"error\":{\"root_cause\":[{\"type\":\"illegal_argument_exception\",\"reason\":\"No search type for [scan]\"}],\"type\":\"illegal_argument_exception\",\"reason\":\"No search type for [scan]\"},\"status\":400}\r\n```\r\nThis appears to happen because this plugin uses the `scan` search type, which was [removed in Elsaticsearch v5](https://www.elastic.co/guide/en/elasticsearch/reference/5.0/breaking_50_search_changes.html#_literal_search_type_scan_literal_removed).\r\n"},"comment":{"url":"https://api.github.com/repos/logstash-plugins/logstash-input-elasticsearch/issues/comments/253563132","html_url":"https://github.com/logstash-plugins/logstash-input-elasticsearch/issues/50#issuecomment-253563132","issue_url":"https://api.github.com/repos/logstash-plugins/logstash-input-elasticsearch/issues/50","id":253563132,"user":{"login":"djschny","id":129643,"avatar_url":"https://avatars.githubusercontent.com/u/129643?v=3","gravatar_id":"","url":"https://api.github.com/users/djschny","html_url":"https://github.com/djschny","followers_url":"https://api.github.com/users/djschny/followers","following_url":"https://api.github.com/users/djschny/following{/other_user}","gists_url":"https://api.github.com/users/djschny/gists{/gist_id}","starred_url":"https://api.github.com/users/djschny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djschny/subscriptions","organizations_url":"https://api.github.com/users/djschny/orgs","repos_url":"https://api.github.com/users/djschny/repos","events_url":"https://api.github.com/users/djschny/events{/privacy}","received_events_url":"https://api.github.com/users/djschny/received_events","type":"User","site_admin":false},"created_at":"2016-10-13T16:20:13Z","updated_at":"2016-10-13T16:20:13Z","body":"It's a few things that I can see:\r\n\r\n* remove the `scan` option\r\n* change that `size` is now per overall response and now per shard\r\n* default to sorting the scroll by `_doc` which gives previous scan behavior\r\n"}}
{"actor":{"display_login":"djschny"}}