{"action":"created","issue":{"url":"https://api.github.com/repos/mrkschan/nginxbeat/issues/10","labels_url":"https://api.github.com/repos/mrkschan/nginxbeat/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/mrkschan/nginxbeat/issues/10/comments","events_url":"https://api.github.com/repos/mrkschan/nginxbeat/issues/10/events","html_url":"https://github.com/mrkschan/nginxbeat/pull/10","id":118270234,"number":10,"title":"Publish multiple document types","user":{"login":"mrkschan","id":118147,"avatar_url":"https://avatars.githubusercontent.com/u/118147?v=3","gravatar_id":"","url":"https://api.github.com/users/mrkschan","html_url":"https://github.com/mrkschan","followers_url":"https://api.github.com/users/mrkschan/followers","following_url":"https://api.github.com/users/mrkschan/following{/other_user}","gists_url":"https://api.github.com/users/mrkschan/gists{/gist_id}","starred_url":"https://api.github.com/users/mrkschan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrkschan/subscriptions","organizations_url":"https://api.github.com/users/mrkschan/orgs","repos_url":"https://api.github.com/users/mrkschan/repos","events_url":"https://api.github.com/users/mrkschan/events{/privacy}","received_events_url":"https://api.github.com/users/mrkschan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-22T15:45:40Z","updated_at":"2015-11-23T20:02:26Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mrkschan/nginxbeat/pulls/10","html_url":"https://github.com/mrkschan/nginxbeat/pull/10","diff_url":"https://github.com/mrkschan/nginxbeat/pull/10.diff","patch_url":"https://github.com/mrkschan/nginxbeat/pull/10.patch"},"body":"Resolve #7 "},"comment":{"url":"https://api.github.com/repos/mrkschan/nginxbeat/issues/comments/159047436","html_url":"https://github.com/mrkschan/nginxbeat/pull/10#issuecomment-159047436","issue_url":"https://api.github.com/repos/mrkschan/nginxbeat/issues/10","id":159047436,"user":{"login":"urso","id":75886,"avatar_url":"https://avatars.githubusercontent.com/u/75886?v=3","gravatar_id":"","url":"https://api.github.com/users/urso","html_url":"https://github.com/urso","followers_url":"https://api.github.com/users/urso/followers","following_url":"https://api.github.com/users/urso/following{/other_user}","gists_url":"https://api.github.com/users/urso/gists{/gist_id}","starred_url":"https://api.github.com/users/urso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/urso/subscriptions","organizations_url":"https://api.github.com/users/urso/orgs","repos_url":"https://api.github.com/users/urso/repos","events_url":"https://api.github.com/users/urso/events{/privacy}","received_events_url":"https://api.github.com/users/urso/received_events","type":"User","site_admin":false},"created_at":"2015-11-23T20:02:26Z","updated_at":"2015-11-23T20:02:26Z","body":"@mrkschan not sure if this kind of discussion would be better somewhere else  instead of burying it in here (e.g. some separate github usse or discuss or stackoverflow).\r\n\r\nMain reasoning PublishEvent is not reusing PublishEvents is that operators are allowed to disable usage of bulk inserts. In this case the output plugins PublishEvent function must be used to guarantee no bulk inserts are used (e.g. see [elasticsearch outputer](https://github.com/elastic/libbeat/blob/master/outputs/elasticsearch/client.go#L199) for example).\r\n\r\nAlso see [async publisher not generating bulk workers](https://github.com/elastic/libbeat/blob/master/publisher/async.go#L76) (collecting multiple events into batches) if bulk insert is disabled. Some of bulk API yes or no config (and some other) can and should be pushed much closer (or right into) to the output plugin (we're just not there yet).\r\n\r\nThese are the results of some quite extensive refactoring to get sync/async in and I'm pretty sure we will see more refinements when starting on event filtering support.\r\n\r\nIf you want to help to continue refactoring the publisher feel free to discuss with me or start a PR."}}