{"action":"created","issue":{"url":"https://api.github.com/repos/stevendanna/logrotate/issues/126","repository_url":"https://api.github.com/repos/stevendanna/logrotate","labels_url":"https://api.github.com/repos/stevendanna/logrotate/issues/126/labels{/name}","comments_url":"https://api.github.com/repos/stevendanna/logrotate/issues/126/comments","events_url":"https://api.github.com/repos/stevendanna/logrotate/issues/126/events","html_url":"https://github.com/stevendanna/logrotate/issues/126","id":330541706,"node_id":"MDU6SXNzdWUzMzA1NDE3MDY=","number":126,"title":"How to include maxage parameter in logrotate file ?","user":{"login":"GuptaArpit07","id":39041913,"node_id":"MDQ6VXNlcjM5MDQxOTEz","avatar_url":"https://avatars1.githubusercontent.com/u/39041913?v=4","gravatar_id":"","url":"https://api.github.com/users/GuptaArpit07","html_url":"https://github.com/GuptaArpit07","followers_url":"https://api.github.com/users/GuptaArpit07/followers","following_url":"https://api.github.com/users/GuptaArpit07/following{/other_user}","gists_url":"https://api.github.com/users/GuptaArpit07/gists{/gist_id}","starred_url":"https://api.github.com/users/GuptaArpit07/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GuptaArpit07/subscriptions","organizations_url":"https://api.github.com/users/GuptaArpit07/orgs","repos_url":"https://api.github.com/users/GuptaArpit07/repos","events_url":"https://api.github.com/users/GuptaArpit07/events{/privacy}","received_events_url":"https://api.github.com/users/GuptaArpit07/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-08T07:00:13Z","updated_at":"2018-06-08T07:41:10Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\nI have the logrotate cookbook which I have used in my deploy recipe to include the logrotation of log files.\r\nBelow is the blog from my file for creating the logrotate file for app logs.\r\n`logrotate_app 'app' do\r\n  path [\"#{node['deploy']['logdir']}/#{node['deploy']['nodejs']['application_name']}/app*log\"]\r\n  size '5M'\r\n  frequency 'daily'\r\n  rotate 5\r\n  options ['missingok', 'delaycompress', 'notifempty', 'sharedscripts', 'copytruncate']\r\n  create \"664 #{node['deploy']['user']} root\"\r\nend`\r\n\r\nCan you please help me in including the maxage parameter with correct syntax as I am unable to do so?\r\nI tried adding as : -\r\nmaxage 60\r\nmaxage=>60\r\nBut the file is not getting updated after running the chef-client on the server due to some syntax mismatch.\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/stevendanna/logrotate/issues/comments/395677087","html_url":"https://github.com/stevendanna/logrotate/issues/126#issuecomment-395677087","issue_url":"https://api.github.com/repos/stevendanna/logrotate/issues/126","id":395677087,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NTY3NzA4Nw==","user":{"login":"stevendanna","id":852371,"node_id":"MDQ6VXNlcjg1MjM3MQ==","avatar_url":"https://avatars0.githubusercontent.com/u/852371?v=4","gravatar_id":"","url":"https://api.github.com/users/stevendanna","html_url":"https://github.com/stevendanna","followers_url":"https://api.github.com/users/stevendanna/followers","following_url":"https://api.github.com/users/stevendanna/following{/other_user}","gists_url":"https://api.github.com/users/stevendanna/gists{/gist_id}","starred_url":"https://api.github.com/users/stevendanna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevendanna/subscriptions","organizations_url":"https://api.github.com/users/stevendanna/orgs","repos_url":"https://api.github.com/users/stevendanna/repos","events_url":"https://api.github.com/users/stevendanna/events{/privacy}","received_events_url":"https://api.github.com/users/stevendanna/received_events","type":"User","site_admin":false},"created_at":"2018-06-08T07:41:10Z","updated_at":"2018-06-08T07:41:10Z","author_association":"OWNER","body":"Hi,\r\n\r\n```\r\nmaxage 60\r\n```\r\n\r\nor \r\n\r\n```\r\nmaxage \"60\"\r\n```\r\n\r\nshould work.  Can you share the error message you are getting when trying to use that option?"}}
{"actor":{"display_login":"stevendanna"}}