Vamsi Vutukuri created LOGBACK-1468: ----------------------------------------
Summary: I want to store only the last 500MB log data everyday and gzip it . Key: LOGBACK-1468 URL: https://jira.qos.ch/browse/LOGBACK-1468 Project: logback Issue Type: Task Components: logback-core Affects Versions: 1.1.8 Environment: Ubuntu 14.04 logback.xml Reporter: Vamsi Vutukuri Assignee: Logback dev list Attachments: text.txt Hi help to complete the task . I need only the last 500MB generated logs data each day and compress it and have backup of 10days and should delete the older file after 10th day Even though i use rolling file appender its zipping the first 500MB data and creating a tmp file if the app generates extra 500mb data same day i need to store only 500mb data that to app lastestly generated logs . He is my configuration : <appender name="FILE-ROLLING" class="ch.qos.logback.core.rolling.RollingFileAppender"> <file>test.log</file> <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"> <fileNamePattern>test.%d\{yyyy-MM-dd}.%i.log.gz</fileNamePattern> <!-- each archived file, size max 500MB --> <maxFileSize>500MB</maxFileSize> <!-- total size of all archive files, if total size > 5GB, it will delete old archived file --> <totalSizeCap>5GB</totalSizeCap> <!-- 10 days to keep --> <maxHistory>10</maxHistory> </rollingPolicy> <encoder> <pattern>%d\{yyyy-MM-dd HH:mm:ss:SSS}*%m%n<</pattern> </encoder> </appender> -- This message was sent by Atlassian JIRA (v7.3.1#73012) _______________________________________________ logback-dev mailing list logback-dev@qos.ch http://mailman.qos.ch/mailman/listinfo/logback-dev