{"action":"created","issue":{"url":"https://api.github.com/repos/rundeck/rundeck/issues/1378","repository_url":"https://api.github.com/repos/rundeck/rundeck","labels_url":"https://api.github.com/repos/rundeck/rundeck/issues/1378/labels{/name}","comments_url":"https://api.github.com/repos/rundeck/rundeck/issues/1378/comments","events_url":"https://api.github.com/repos/rundeck/rundeck/issues/1378/events","html_url":"https://github.com/rundeck/rundeck/issues/1378","id":98744945,"number":1378,"title":"Feature Request: compress activity log","user":{"login":"gentunian","id":1090113,"avatar_url":"https://avatars.githubusercontent.com/u/1090113?v=3","gravatar_id":"","url":"https://api.github.com/users/gentunian","html_url":"https://github.com/gentunian","followers_url":"https://api.github.com/users/gentunian/followers","following_url":"https://api.github.com/users/gentunian/following{/other_user}","gists_url":"https://api.github.com/users/gentunian/gists{/gist_id}","starred_url":"https://api.github.com/users/gentunian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gentunian/subscriptions","organizations_url":"https://api.github.com/users/gentunian/orgs","repos_url":"https://api.github.com/users/gentunian/repos","events_url":"https://api.github.com/users/gentunian/events{/privacy}","received_events_url":"https://api.github.com/users/gentunian/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rundeck/rundeck/labels/enhancement","name":"enhancement","color":"02d7e1"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2015-08-03T13:39:17Z","updated_at":"2016-07-06T17:46:57Z","closed_at":null,"body":"Activity log may eat up your disk space. \r\n\r\n`.rdlog` files are stored as-is in rundeck server. One option would be to mount an external storage and store activity in there in order to not waste rundeck server disk space. Despite that, activity logs could be compressed. You will lose processing time but just in one use case: when you need to read log files.\r\n\r\nI think it worth it.\r\n"},"comment":{"url":"https://api.github.com/repos/rundeck/rundeck/issues/comments/230850321","html_url":"https://github.com/rundeck/rundeck/issues/1378#issuecomment-230850321","issue_url":"https://api.github.com/repos/rundeck/rundeck/issues/1378","id":230850321,"user":{"login":"gschueler","id":55603,"avatar_url":"https://avatars.githubusercontent.com/u/55603?v=3","gravatar_id":"","url":"https://api.github.com/users/gschueler","html_url":"https://github.com/gschueler","followers_url":"https://api.github.com/users/gschueler/followers","following_url":"https://api.github.com/users/gschueler/following{/other_user}","gists_url":"https://api.github.com/users/gschueler/gists{/gist_id}","starred_url":"https://api.github.com/users/gschueler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gschueler/subscriptions","organizations_url":"https://api.github.com/users/gschueler/orgs","repos_url":"https://api.github.com/users/gschueler/repos","events_url":"https://api.github.com/users/gschueler/events{/privacy}","received_events_url":"https://api.github.com/users/gschueler/received_events","type":"User","site_admin":false},"created_at":"2016-07-06T17:46:56Z","updated_at":"2016-07-06T17:46:56Z","body":".rdlog files are created by the LoggingService, in coordination with the LogFileStorageService. See description here: http://rundeck.org/docs/developer/logging-plugin.html\r\n\r\nSpecifically, the [getLogfileWriterForExecution](https://github.com/rundeck/rundeck/blob/master/rundeckapp/grails-app/services/rundeck/services/LogFileStorageService.groovy#L353) method creates the FSStreamingLogWriter which writes to the file.\r\n\r\nPerhaps a config flag could enable compression by default, and the output file output stream wrapped in a zip output stream.   \r\n\r\nWe would have enhance the [getLogReaderForFile](https://github.com/rundeck/rundeck/blob/master/rundeckapp/grails-app/services/rundeck/services/LogFileStorageService.groovy#L734) somehow (i.e. the FSStreamingLogReader)  to detect if the file is zip compressed.\r\n\r\n"}}
{"actor":{"display_login":"gschueler"}}