[logback-dev] [JIRA] (LOGBACK-1468) I want to store only the last 500MB log data everyday and gzip it .

QOS.CH (JIRA) noreply-jira at qos.ch
Fri May 31 18:54:00 CEST 2019

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 


            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">

<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
<!-- each archived file, size max 500MB -->
<!-- total size of all archive files, if total size > 5GB, it will delete old archived file -->
<!-- 10 days to keep -->

<pattern>%d\{yyyy-MM-dd HH:mm:ss:SSS}*%m%n<</pattern>



This message was sent by Atlassian JIRA

More information about the logback-dev mailing list