{"action":"closed","issue":{"url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/issues/735","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/735/labels{/name}","comments_url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/issues/735/comments","events_url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/issues/735/events","html_url":"https://github.com/logstash-plugins/logstash-output-elasticsearch/issues/735","id":296902478,"number":735,"title":"7.x fails to index due to doc vs. _doc type","user":{"login":"jakelandis","id":976291,"avatar_url":"https://avatars2.githubusercontent.com/u/976291?v=4","gravatar_id":"","url":"https://api.github.com/users/jakelandis","html_url":"https://github.com/jakelandis","followers_url":"https://api.github.com/users/jakelandis/followers","following_url":"https://api.github.com/users/jakelandis/following{/other_user}","gists_url":"https://api.github.com/users/jakelandis/gists{/gist_id}","starred_url":"https://api.github.com/users/jakelandis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakelandis/subscriptions","organizations_url":"https://api.github.com/users/jakelandis/orgs","repos_url":"https://api.github.com/users/jakelandis/repos","events_url":"https://api.github.com/users/jakelandis/events{/privacy}","received_events_url":"https://api.github.com/users/jakelandis/received_events","type":"User","site_admin":false},"labels":[{"id":183345178,"url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/labels/blocker","name":"blocker","color":"e11d21","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-02-13T22:05:36Z","updated_at":"2018-03-13T15:41:27Z","closed_at":"2018-03-13T15:41:27Z","author_association":"CONTRIBUTOR","body":"The 7.x ES template (correctly) sets the [document mapping](https://github.com/logstash-plugins/logstash-output-elasticsearch/blob/master/lib/logstash/outputs/elasticsearch/elasticsearch-template-es7x.json#L8) to `_doc`, however, it appears that source code is still [sending](https://github.com/logstash-plugins/logstash-output-elasticsearch/blob/master/lib/logstash/outputs/elasticsearch/common.rb#L207) `doc`.  \r\n\r\nThis mismatch makes the default configuration for 7.x non-functional for the logstash-* indexes against a 7.x Elasticsearch. \r\n\r\nIdeally we would fix this to be back and forward passive to 6.x (`doc`), 7.x (`_doc`), and 8.x (don't send it at all).  See: https://www.elastic.co/guide/en/elasticsearch/reference/6.x/removal-of-types.html\r\n\r\n\r\n\r\n"}}
{"actor":{"display_login":"jsvd"}}