{"action":"created","issue":{"url":"https://api.github.com/repos/serilog/serilog-sinks-elasticsearch/issues/41","repository_url":"https://api.github.com/repos/serilog/serilog-sinks-elasticsearch","labels_url":"https://api.github.com/repos/serilog/serilog-sinks-elasticsearch/issues/41/labels{/name}","comments_url":"https://api.github.com/repos/serilog/serilog-sinks-elasticsearch/issues/41/comments","events_url":"https://api.github.com/repos/serilog/serilog-sinks-elasticsearch/issues/41/events","html_url":"https://github.com/serilog/serilog-sinks-elasticsearch/pull/41","id":143747329,"number":41,"title":"Add KibanaFriendlyJsonFormatter","user":{"login":"driis","id":1428791,"avatar_url":"https://avatars.githubusercontent.com/u/1428791?v=3","gravatar_id":"","url":"https://api.github.com/users/driis","html_url":"https://github.com/driis","followers_url":"https://api.github.com/users/driis/followers","following_url":"https://api.github.com/users/driis/following{/other_user}","gists_url":"https://api.github.com/users/driis/gists{/gist_id}","starred_url":"https://api.github.com/users/driis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/driis/subscriptions","organizations_url":"https://api.github.com/users/driis/orgs","repos_url":"https://api.github.com/users/driis/repos","events_url":"https://api.github.com/users/driis/events{/privacy}","received_events_url":"https://api.github.com/users/driis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2016-03-26T20:32:22Z","updated_at":"2016-04-04T20:38:06Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/serilog/serilog-sinks-elasticsearch/pulls/41","html_url":"https://github.com/serilog/serilog-sinks-elasticsearch/pull/41","diff_url":"https://github.com/serilog/serilog-sinks-elasticsearch/pull/41.diff","patch_url":"https://github.com/serilog/serilog-sinks-elasticsearch/pull/41.patch"},"body":"This PR should fix #37 by providing users an alternative formatter to pass in as the custom formatter. This will restore pre-2.0 exception formatting; thus avoiding putting exceptions in an array which creates problems when using the sink with Kibana.\r\n\r\nTo use it, users should pass in the new KibanaFriendlyJsonFormatter in options:\r\n\r\n```\r\nvar sink = new ElasticsearchSink(\r\n  new ElasticsearchSinkOptions(uri) \r\n  { \r\n    CustomFormatter = new KibanaFriendlyJsonFormatter(renderMessage:true)\r\n  });\r\n```\r\n\r\nDefault behaviour has not been changed. "},"comment":{"url":"https://api.github.com/repos/serilog/serilog-sinks-elasticsearch/issues/comments/205483374","html_url":"https://github.com/serilog/serilog-sinks-elasticsearch/pull/41#issuecomment-205483374","issue_url":"https://api.github.com/repos/serilog/serilog-sinks-elasticsearch/issues/41","id":205483374,"user":{"login":"driis","id":1428791,"avatar_url":"https://avatars.githubusercontent.com/u/1428791?v=3","gravatar_id":"","url":"https://api.github.com/users/driis","html_url":"https://github.com/driis","followers_url":"https://api.github.com/users/driis/followers","following_url":"https://api.github.com/users/driis/following{/other_user}","gists_url":"https://api.github.com/users/driis/gists{/gist_id}","starred_url":"https://api.github.com/users/driis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/driis/subscriptions","organizations_url":"https://api.github.com/users/driis/orgs","repos_url":"https://api.github.com/users/driis/repos","events_url":"https://api.github.com/users/driis/events{/privacy}","received_events_url":"https://api.github.com/users/driis/received_events","type":"User","site_admin":false},"created_at":"2016-04-04T20:38:06Z","updated_at":"2016-04-04T20:38:06Z","body":"I agree that another breaking change on the sink right now is probably not a good idea. With adequate documentation the new formatter should be discoverable to those who need it. \r\n\r\nCan we reach a consensus here ? If we go with the new formatter, is there anything you need me to add to the PR ?"}}