{"action":"opened","issue":{"url":"https://api.github.com/repos/pm2-hive/pm2-logrotate/issues/37","repository_url":"https://api.github.com/repos/pm2-hive/pm2-logrotate","labels_url":"https://api.github.com/repos/pm2-hive/pm2-logrotate/issues/37/labels{/name}","comments_url":"https://api.github.com/repos/pm2-hive/pm2-logrotate/issues/37/comments","events_url":"https://api.github.com/repos/pm2-hive/pm2-logrotate/issues/37/events","html_url":"https://github.com/pm2-hive/pm2-logrotate/issues/37","id":189533153,"number":37,"title":"pm2 set pm2-logrotate:max_size ","user":{"login":"bschelling","id":2998983,"avatar_url":"https://avatars.githubusercontent.com/u/2998983?v=3","gravatar_id":"","url":"https://api.github.com/users/bschelling","html_url":"https://github.com/bschelling","followers_url":"https://api.github.com/users/bschelling/followers","following_url":"https://api.github.com/users/bschelling/following{/other_user}","gists_url":"https://api.github.com/users/bschelling/gists{/gist_id}","starred_url":"https://api.github.com/users/bschelling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bschelling/subscriptions","organizations_url":"https://api.github.com/users/bschelling/orgs","repos_url":"https://api.github.com/users/bschelling/repos","events_url":"https://api.github.com/users/bschelling/events{/privacy}","received_events_url":"https://api.github.com/users/bschelling/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-15T23:05:29Z","updated_at":"2016-11-15T23:05:29Z","closed_at":null,"body":"Just started using pm2-logrotate and immediately ran into an issue. I'm not sure whether this is expected behaviour but at least its a warning to anybody trying to do the same.\r\n\r\nI had a 27GB logfile on a server that was running for a long time.\r\nI ran `pm2 set pm2-logrotate:max_size 1G`\r\n\r\n What I expected was that on the default time (midnight) the huge logfile would be moved and from then on logrotate would check for files > 1GB at the time specified.\r\n\r\nWhat actually happened was that a number of logfiles were generated in parallel immediately and I almost ran out of disk since the orginal logfile didn't get smaller. \r\n\r\npm2 list showed pm2-logrotate as an activated module, but `pm2 stop pm2-logrotate` only resulted in \"Process pm2-logrotate not found\".\r\n\r\nIn the end i went on a killing spree and deleted the pm2 god as well as the node processes and deleted the huge log file.\r\n\r\n"}}
{"actor":{"display_login":"bschelling"}}