{"action":"created","issue":{"url":"https://api.github.com/repos/progrium/dokku/issues/1256","labels_url":"https://api.github.com/repos/progrium/dokku/issues/1256/labels{/name}","comments_url":"https://api.github.com/repos/progrium/dokku/issues/1256/comments","events_url":"https://api.github.com/repos/progrium/dokku/issues/1256/events","html_url":"https://github.com/progrium/dokku/pull/1256","id":91257009,"number":1256,"title":"Implement events logging feature","user":{"login":"alessio","id":229356,"avatar_url":"https://avatars.githubusercontent.com/u/229356?v=3","gravatar_id":"","url":"https://api.github.com/users/alessio","html_url":"https://github.com/alessio","followers_url":"https://api.github.com/users/alessio/followers","following_url":"https://api.github.com/users/alessio/following{/other_user}","gists_url":"https://api.github.com/users/alessio/gists{/gist_id}","starred_url":"https://api.github.com/users/alessio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alessio/subscriptions","organizations_url":"https://api.github.com/users/alessio/orgs","repos_url":"https://api.github.com/users/alessio/repos","events_url":"https://api.github.com/users/alessio/events{/privacy}","received_events_url":"https://api.github.com/users/alessio/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-06-26T13:49:28Z","updated_at":"2015-06-26T19:53:41Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/progrium/dokku/pulls/1256","html_url":"https://github.com/progrium/dokku/pull/1256","diff_url":"https://github.com/progrium/dokku/pull/1256.diff","patch_url":"https://github.com/progrium/dokku/pull/1256.patch"},"body":"Record events (i.e. pluginhook's calls) as syslog entries and provide a shortcut command to display the last part of the log file.\r\n\r\nA brief list of changes follows:\r\n\r\n`dokku`:\r\n - New __DOKKU_EVENTS_LOGFILE__ envvar to hold logfile location.\r\n\r\n`plugins/20_events/commands`:\r\n - __events__ output log entries, a tail's follow-like mode is provided too.\r\n - __events:[on|off]__ enables/disables logging.\r\n - __events:list__ lists events that are logged.\r\n\r\n`plugins/20_events/hook`:\r\n - Generic hook that writes log entries. All the events are registered via symlink to this script.\r\n\r\n`plugins/common/functions`:\r\n - _dokku_log_event()_ writes log entries via logger.\r\n - _dokku_log_pluginhook_call()_ formats log entries and writes them via dokku_log_event()."},"comment":{"url":"https://api.github.com/repos/progrium/dokku/issues/comments/115854820","html_url":"https://github.com/progrium/dokku/pull/1256#issuecomment-115854820","issue_url":"https://api.github.com/repos/progrium/dokku/issues/1256","id":115854820,"user":{"login":"alessio","id":229356,"avatar_url":"https://avatars.githubusercontent.com/u/229356?v=3","gravatar_id":"","url":"https://api.github.com/users/alessio","html_url":"https://github.com/alessio","followers_url":"https://api.github.com/users/alessio/followers","following_url":"https://api.github.com/users/alessio/following{/other_user}","gists_url":"https://api.github.com/users/alessio/gists{/gist_id}","starred_url":"https://api.github.com/users/alessio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alessio/subscriptions","organizations_url":"https://api.github.com/users/alessio/orgs","repos_url":"https://api.github.com/users/alessio/repos","events_url":"https://api.github.com/users/alessio/events{/privacy}","received_events_url":"https://api.github.com/users/alessio/received_events","type":"User","site_admin":false},"created_at":"2015-06-26T19:53:41Z","updated_at":"2015-06-26T19:53:41Z","body":"@michaelshobbs run:\r\n```shell\r\nls -l /var/log/dokku.log\r\n```\r\n\r\nPlease confirm that your result matches the following\r\n```shell\r\n$ ls -l /var/log/dokku.log \r\n-rw-rw-r-- 1 syslog dokku 171986 Jun 26 20:30 /var/log/dokku.log\r\n```\r\n\r\nIt's crucial that the owner is `syslog`, otherwise rsyslog can't write to it.\r\nIt should be enough to reload rsyslog (and the install should be doing that), though I'd suggest to stop the service and start it again:\r\n```shell\r\nsudo service rsyslog restart\r\n```"}}