{"action":"created","issue":{"url":"https://api.github.com/repos/Unitech/PM2/issues/1148","labels_url":"https://api.github.com/repos/Unitech/PM2/issues/1148/labels{/name}","comments_url":"https://api.github.com/repos/Unitech/PM2/issues/1148/comments","events_url":"https://api.github.com/repos/Unitech/PM2/issues/1148/events","html_url":"https://github.com/Unitech/PM2/issues/1148","id":66764700,"number":1148,"title":"How to cut the log file?","user":{"login":"davieyeye","id":3388545,"avatar_url":"https://avatars.githubusercontent.com/u/3388545?v=3","gravatar_id":"","url":"https://api.github.com/users/davieyeye","html_url":"https://github.com/davieyeye","followers_url":"https://api.github.com/users/davieyeye/followers","following_url":"https://api.github.com/users/davieyeye/following{/other_user}","gists_url":"https://api.github.com/users/davieyeye/gists{/gist_id}","starred_url":"https://api.github.com/users/davieyeye/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davieyeye/subscriptions","organizations_url":"https://api.github.com/users/davieyeye/orgs","repos_url":"https://api.github.com/users/davieyeye/repos","events_url":"https://api.github.com/users/davieyeye/events{/privacy}","received_events_url":"https://api.github.com/users/davieyeye/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-07T03:32:39Z","updated_at":"2015-06-03T15:13:04Z","closed_at":"2015-04-22T03:48:35Z","body":"the log file is very big(about 1.2G, and it is still increasing). How to cut a big log file to multiple small log files? Has pm2 support anyway to cut the log file automatically?"},"comment":{"url":"https://api.github.com/repos/Unitech/PM2/issues/comments/108478676","html_url":"https://github.com/Unitech/PM2/issues/1148#issuecomment-108478676","issue_url":"https://api.github.com/repos/Unitech/PM2/issues/1148","id":108478676,"user":{"login":"jshkurti","id":7647602,"avatar_url":"https://avatars.githubusercontent.com/u/7647602?v=3","gravatar_id":"","url":"https://api.github.com/users/jshkurti","html_url":"https://github.com/jshkurti","followers_url":"https://api.github.com/users/jshkurti/followers","following_url":"https://api.github.com/users/jshkurti/following{/other_user}","gists_url":"https://api.github.com/users/jshkurti/gists{/gist_id}","starred_url":"https://api.github.com/users/jshkurti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jshkurti/subscriptions","organizations_url":"https://api.github.com/users/jshkurti/orgs","repos_url":"https://api.github.com/users/jshkurti/repos","events_url":"https://api.github.com/users/jshkurti/events{/privacy}","received_events_url":"https://api.github.com/users/jshkurti/received_events","type":"User","site_admin":false},"created_at":"2015-06-03T15:13:04Z","updated_at":"2015-06-03T15:13:04Z","body":"You can now install the module pm2-logrotate `pm2 install pm2-logrotate` which will automatically rotate logs for each application running with PM2 including PM2 logs itself.\r\n\r\nSee https://www.npmjs.com/package/pm2-logrotate#configure for more info."}}