{"action":"created","comment":{"url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/pulls/comments/23274118","id":23274118,"diff_hunk":"@@ -178,6 +178,8 @@ class LogStash::Outputs::ElasticSearch < LogStash::Outputs::Base\n   #\n   # - index: indexes a document (an event from Logstash).\n   # - delete: deletes a document by id\n+  # - create_unless_exists: creates a document, raises exception if no id is provided","path":"lib/logstash/outputs/elasticsearch.rb","position":4,"original_position":4,"commit_id":"9998916693364d65492b54c3999cdc00891c50ad","original_commit_id":"9998916693364d65492b54c3999cdc00891c50ad","user":{"login":"pickypg","id":1501235,"avatar_url":"https://avatars.githubusercontent.com/u/1501235?v=3","gravatar_id":"","url":"https://api.github.com/users/pickypg","html_url":"https://github.com/pickypg","followers_url":"https://api.github.com/users/pickypg/followers","following_url":"https://api.github.com/users/pickypg/following{/other_user}","gists_url":"https://api.github.com/users/pickypg/gists{/gist_id}","starred_url":"https://api.github.com/users/pickypg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pickypg/subscriptions","organizations_url":"https://api.github.com/users/pickypg/orgs","repos_url":"https://api.github.com/users/pickypg/repos","events_url":"https://api.github.com/users/pickypg/events{/privacy}","received_events_url":"https://api.github.com/users/pickypg/received_events","type":"User","site_admin":false},"body":"We should explicitly document that this is not supported by the HTTP client unless it does. I'm torn on that difference too, but it makes sense for the HTTP client to be a bit truer to the REST spec.","created_at":"2015-01-21T02:17:41Z","updated_at":"2015-01-21T02:17:41Z","html_url":"https://github.com/logstash-plugins/logstash-output-elasticsearch/pull/39#discussion_r23274118","pull_request_url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/pulls/39","_links":{"self":{"href":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/pulls/comments/23274118"},"html":{"href":"https://github.com/logstash-plugins/logstash-output-elasticsearch/pull/39#discussion_r23274118"},"pull_request":{"href":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/pulls/39"}}},"pull_request":{"url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/pulls/39","id":27726646,"html_url":"https://github.com/logstash-plugins/logstash-output-elasticsearch/pull/39","diff_url":"https://github.com/logstash-plugins/logstash-output-elasticsearch/pull/39.diff","patch_url":"https://github.com/logstash-plugins/logstash-output-elasticsearch/pull/39.patch","issue_url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/issues/39","number":39,"state":"open","locked":false,"title":"add create/create_unless_exists actions support to node client (from pickypg)","user":{"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},"body":"original PR: https://github.com/logstash-plugins/logstash-output-elasticsearch/pull/29\r\n\r\n@pickypg","created_at":"2015-01-21T00:50:01Z","updated_at":"2015-01-21T02:17:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dce9877ccf98bea59fe36c68d1d59d6d343e908b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/pulls/39/commits","review_comments_url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/pulls/39/comments","review_comment_url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/pulls/comments/{number}","comments_url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/issues/39/comments","statuses_url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/statuses/9998916693364d65492b54c3999cdc00891c50ad","head":{"label":"talevy:feature/create","ref":"feature/create","sha":"9998916693364d65492b54c3999cdc00891c50ad","user":{"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},"repo":{"id":26024509,"name":"logstash-output-elasticsearch","full_name":"talevy/logstash-output-elasticsearch","owner":{"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},"private":false,"html_url":"https://github.com/talevy/logstash-output-elasticsearch","description":null,"fork":true,"url":"https://api.github.com/repos/talevy/logstash-output-elasticsearch","forks_url":"https://api.github.com/repos/talevy/logstash-output-elasticsearch/forks","keys_url":"https://api.github.com/repos/talevy/logstash-output-elasticsearch/keys{/key_id}","collaborators_url":"https://api.github.com/repos/talevy/logstash-output-elasticsearch/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/talevy/logstash-output-elasticsearch/teams","hooks_url":"https://api.github.com/repos/talevy/logstash-output-elasticsearch/hooks","issue_events_url":"https://api.github.com/repos/talevy/logstash-output-elasticsearch/issues/events{/number}","events_url":"https://api.github.com/repos/talevy/logstash-output-elasticsearch/events","assignees_url":"https://api.github.com/repos/talevy/logstash-output-elasticsearch/assignees{/user}","branches_url":"https://api.github.com/repos/talevy/logstash-output-elasticsearch/branches{/branch}","tags_url":"https://api.github.com/repos/talevy/logstash-output-elasticsearch/tags","blobs_url":"https://api.github.com/repos/talevy/logstash-output-elasticsearch/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/talevy/logstash-output-elasticsearch/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/talevy/logstash-output-elasticsearch/git/refs{/sha}","trees_url":"https://api.github.com/repos/talevy/logstash-output-elasticsearch/git/trees{/sha}","statuses_url":"https://api.github.com/repos/talevy/logstash-output-elasticsearch/statuses/{sha}","languages_url":"https://api.github.com/repos/talevy/logstash-output-elasticsearch/languages","stargazers_url":"https://api.github.com/repos/talevy/logstash-output-elasticsearch/stargazers","contributors_url":"https://api.github.com/repos/talevy/logstash-output-elasticsearch/contributors","subscribers_url":"https://api.github.com/repos/talevy/logstash-output-elasticsearch/subscribers","subscription_url":"https://api.github.com/repos/talevy/logstash-output-elasticsearch/subscription","commits_url":"https://api.github.com/repos/talevy/logstash-output-elasticsearch/commits{/sha}","git_commits_url":"https://api.github.com/repos/talevy/logstash-output-elasticsearch/git/commits{/sha}","comments_url":"https://api.github.com/repos/talevy/logstash-output-elasticsearch/comments{/number}","issue_comment_url":"https://api.github.com/repos/talevy/logstash-output-elasticsearch/issues/comments/{number}","contents_url":"https://api.github.com/repos/talevy/logstash-output-elasticsearch/contents/{+path}","compare_url":"https://api.github.com/repos/talevy/logstash-output-elasticsearch/compare/{base}...{head}","merges_url":"https://api.github.com/repos/talevy/logstash-output-elasticsearch/merges","archive_url":"https://api.github.com/repos/talevy/logstash-output-elasticsearch/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/talevy/logstash-output-elasticsearch/downloads","issues_url":"https://api.github.com/repos/talevy/logstash-output-elasticsearch/issues{/number}","pulls_url":"https://api.github.com/repos/talevy/logstash-output-elasticsearch/pulls{/number}","milestones_url":"https://api.github.com/repos/talevy/logstash-output-elasticsearch/milestones{/number}","notifications_url":"https://api.github.com/repos/talevy/logstash-output-elasticsearch/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/talevy/logstash-output-elasticsearch/labels{/name}","releases_url":"https://api.github.com/repos/talevy/logstash-output-elasticsearch/releases{/id}","created_at":"2014-10-31T16:42:29Z","updated_at":"2015-01-21T00:48:27Z","pushed_at":"2015-01-21T00:48:48Z","git_url":"git://github.com/talevy/logstash-output-elasticsearch.git","ssh_url":"git@github.com:talevy/logstash-output-elasticsearch.git","clone_url":"https://github.com/talevy/logstash-output-elasticsearch.git","svn_url":"https://github.com/talevy/logstash-output-elasticsearch","homepage":null,"size":364,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"logstash-plugins:master","ref":"master","sha":"2383f80f8447e8c0c845dbaf1f0b907d31bb1b43","user":{"login":"logstash-plugins","id":8961934,"avatar_url":"https://avatars.githubusercontent.com/u/8961934?v=3","gravatar_id":"","url":"https://api.github.com/users/logstash-plugins","html_url":"https://github.com/logstash-plugins","followers_url":"https://api.github.com/users/logstash-plugins/followers","following_url":"https://api.github.com/users/logstash-plugins/following{/other_user}","gists_url":"https://api.github.com/users/logstash-plugins/gists{/gist_id}","starred_url":"https://api.github.com/users/logstash-plugins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/logstash-plugins/subscriptions","organizations_url":"https://api.github.com/users/logstash-plugins/orgs","repos_url":"https://api.github.com/users/logstash-plugins/repos","events_url":"https://api.github.com/users/logstash-plugins/events{/privacy}","received_events_url":"https://api.github.com/users/logstash-plugins/received_events","type":"Organization","site_admin":false},"repo":{"id":25476601,"name":"logstash-output-elasticsearch","full_name":"logstash-plugins/logstash-output-elasticsearch","owner":{"login":"logstash-plugins","id":8961934,"avatar_url":"https://avatars.githubusercontent.com/u/8961934?v=3","gravatar_id":"","url":"https://api.github.com/users/logstash-plugins","html_url":"https://github.com/logstash-plugins","followers_url":"https://api.github.com/users/logstash-plugins/followers","following_url":"https://api.github.com/users/logstash-plugins/following{/other_user}","gists_url":"https://api.github.com/users/logstash-plugins/gists{/gist_id}","starred_url":"https://api.github.com/users/logstash-plugins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/logstash-plugins/subscriptions","organizations_url":"https://api.github.com/users/logstash-plugins/orgs","repos_url":"https://api.github.com/users/logstash-plugins/repos","events_url":"https://api.github.com/users/logstash-plugins/events{/privacy}","received_events_url":"https://api.github.com/users/logstash-plugins/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/logstash-plugins/logstash-output-elasticsearch","description":null,"fork":false,"url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch","forks_url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/forks","keys_url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/keys{/key_id}","collaborators_url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/teams","hooks_url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/hooks","issue_events_url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/issues/events{/number}","events_url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/events","assignees_url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/assignees{/user}","branches_url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/branches{/branch}","tags_url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/tags","blobs_url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/git/refs{/sha}","trees_url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/git/trees{/sha}","statuses_url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/statuses/{sha}","languages_url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/languages","stargazers_url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/stargazers","contributors_url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/contributors","subscribers_url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/subscribers","subscription_url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/subscription","commits_url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/commits{/sha}","git_commits_url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/git/commits{/sha}","comments_url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/comments{/number}","issue_comment_url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/issues/comments/{number}","contents_url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/contents/{+path}","compare_url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/compare/{base}...{head}","merges_url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/merges","archive_url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/downloads","issues_url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/issues{/number}","pulls_url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/pulls{/number}","milestones_url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/milestones{/number}","notifications_url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/labels{/name}","releases_url":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/releases{/id}","created_at":"2014-10-20T16:56:37Z","updated_at":"2015-01-20T20:55:17Z","pushed_at":"2015-01-20T20:55:17Z","git_url":"git://github.com/logstash-plugins/logstash-output-elasticsearch.git","ssh_url":"git@github.com:logstash-plugins/logstash-output-elasticsearch.git","clone_url":"https://github.com/logstash-plugins/logstash-output-elasticsearch.git","svn_url":"https://github.com/logstash-plugins/logstash-output-elasticsearch","homepage":null,"size":540,"stargazers_count":3,"watchers_count":3,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":13,"forks":11,"open_issues":13,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/pulls/39"},"html":{"href":"https://github.com/logstash-plugins/logstash-output-elasticsearch/pull/39"},"issue":{"href":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/issues/39"},"comments":{"href":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/issues/39/comments"},"review_comments":{"href":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/pulls/39/comments"},"review_comment":{"href":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/pulls/39/commits"},"statuses":{"href":"https://api.github.com/repos/logstash-plugins/logstash-output-elasticsearch/statuses/9998916693364d65492b54c3999cdc00891c50ad"}}}}