{"action":"closed","issue":{"url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/issues/407","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/407/labels{/name}","comments_url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/issues/407/comments","events_url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/issues/407/events","html_url":"https://github.com/logstash-plugins/logstash-output-elasticsearch/issues/407","id":146208873,"number":407,"title":"\"delete\" action doesn't work with logstash 2.3","user":{"login":"gammaliu","id":6039564,"avatar_url":"https://avatars.githubusercontent.com/u/6039564?v=3","gravatar_id":"","url":"https://api.github.com/users/gammaliu","html_url":"https://github.com/gammaliu","followers_url":"https://api.github.com/users/gammaliu/followers","following_url":"https://api.github.com/users/gammaliu/following{/other_user}","gists_url":"https://api.github.com/users/gammaliu/gists{/gist_id}","starred_url":"https://api.github.com/users/gammaliu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gammaliu/subscriptions","organizations_url":"https://api.github.com/users/gammaliu/orgs","repos_url":"https://api.github.com/users/gammaliu/repos","events_url":"https://api.github.com/users/gammaliu/events{/privacy}","received_events_url":"https://api.github.com/users/gammaliu/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-06T07:04:53Z","updated_at":"2016-04-06T08:17:40Z","closed_at":"2016-04-06T08:17:40Z","body":"This is my output config:\r\nWhen I delete a doc in CouchDB , ES didn't.\r\n```\r\noutput {\r\n        stdout {\r\n                codec => rubydebug { metadata => true }\r\n        }\r\n\r\n        if [doc][parent] {\r\n                elasticsearch {\r\n                        #hosts => \"localhost:9200\"\r\n                        hosts => \"127.0.0.1:9200\"\r\n                        index => \"meizi\"\r\n                        document_type => \"%{[@metadata][my_type]}\"\r\n                        document_id => \"%{[@metadata][my_id]}\"\r\n                #if must be used outside, can't be used inside\r\n                #if [doc][parent] {\r\n                        parent => \"%{[@metadata][parent_id]}\"\r\n                #}\r\n                        action => \"%{[@metadata][my_action]}\"\r\n                        #action => \"index\"\r\n                }\r\n        }\r\n        else {\r\n                elasticsearch {\r\n                        #hosts => \"localhost:9200\"\r\n                        hosts => \"127.0.0.1:9200\"\r\n                        index => \"meizi\"\r\n                        document_type => \"%{[@metadata][my_type]}\"\r\n                        document_id => \"%{[@metadata][my_id]}\"\r\n                        action => \"%{[@metadata][my_action]}\"\r\n                        #action => \"index\"\r\n                }\r\n        }\r\n```"}}