{"action":"created","issue":{"url":"https://api.github.com/repos/jordansissel/ruby-cabin/issues/28","labels_url":"https://api.github.com/repos/jordansissel/ruby-cabin/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/jordansissel/ruby-cabin/issues/28/comments","events_url":"https://api.github.com/repos/jordansissel/ruby-cabin/issues/28/events","html_url":"https://github.com/jordansissel/ruby-cabin/pull/28","id":71940224,"number":28,"title":"Flush logs heading to files on each event","user":{"login":"driskell","id":939815,"avatar_url":"https://avatars.githubusercontent.com/u/939815?v=3","gravatar_id":"","url":"https://api.github.com/users/driskell","html_url":"https://github.com/driskell","followers_url":"https://api.github.com/users/driskell/followers","following_url":"https://api.github.com/users/driskell/following{/other_user}","gists_url":"https://api.github.com/users/driskell/gists{/gist_id}","starred_url":"https://api.github.com/users/driskell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/driskell/subscriptions","organizations_url":"https://api.github.com/users/driskell/orgs","repos_url":"https://api.github.com/users/driskell/repos","events_url":"https://api.github.com/users/driskell/events{/privacy}","received_events_url":"https://api.github.com/users/driskell/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-29T17:43:21Z","updated_at":"2015-07-07T04:02:43Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/jordansissel/ruby-cabin/pulls/28","html_url":"https://github.com/jordansissel/ruby-cabin/pull/28","diff_url":"https://github.com/jordansissel/ruby-cabin/pull/28.diff","patch_url":"https://github.com/jordansissel/ruby-cabin/pull/28.patch"},"body":"I've had experience and also user reports of Logstash breaking with seemingly no error.\r\nIt seems when logging to a file (or redirected stdout which is not a terminal) the logs, potentially containing important error messages, are being buffered.\r\n\r\nI believe this is the best fix and want to open discussion. Is this best way to handle it? Or do we prefer to bulk for few seconds? Would a test be preferred?\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/jordansissel/ruby-cabin/issues/comments/119067544","html_url":"https://github.com/jordansissel/ruby-cabin/pull/28#issuecomment-119067544","issue_url":"https://api.github.com/repos/jordansissel/ruby-cabin/issues/28","id":119067544,"user":{"login":"jordansissel","id":131818,"avatar_url":"https://avatars.githubusercontent.com/u/131818?v=3","gravatar_id":"","url":"https://api.github.com/users/jordansissel","html_url":"https://github.com/jordansissel","followers_url":"https://api.github.com/users/jordansissel/followers","following_url":"https://api.github.com/users/jordansissel/following{/other_user}","gists_url":"https://api.github.com/users/jordansissel/gists{/gist_id}","starred_url":"https://api.github.com/users/jordansissel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jordansissel/subscriptions","organizations_url":"https://api.github.com/users/jordansissel/orgs","repos_url":"https://api.github.com/users/jordansissel/repos","events_url":"https://api.github.com/users/jordansissel/events{/privacy}","received_events_url":"https://api.github.com/users/jordansissel/received_events","type":"User","site_admin":false},"created_at":"2015-07-07T04:02:43Z","updated_at":"2015-07-07T04:02:43Z","body":"flush isn't the same as fsync, in the average case I expect a flush to simply move bytes into the filesystem cache (which will make it to disk eventually). +1 on this feature."}}