elasticsearch - Rolling log files based on both size and date -


is there way roll log files based on both size , date ? googled lot still didn't find working solution me. requirement below:

application.log.2017-08-17.1.gz application.log.2017-08-17.2.gz application.log.2017-08-17.gz application.log.2017-08-18.1.gz application.log.2017-08-18.2.gz application.log            ---------  current log file ( assume current date : 2017-08-18) 

i have tried below configuration in logging.yml didn't worked.

file:     type: rollingfile     rollingpolicy: timebased     file: ${path.logs}/application.log     rollingpolicy.filenamepattern: ${path.logs}/application.log.%d{yyyy-mm-dd}.%i.gz     triggeringpolicy: sizebased     triggeringpolicy.maxfilesize: 2kb     append: true     layout:       type: pattern       conversionpattern: "[%d{iso8601}][%-5p][%-25c] %m%n" 

there application.log file created , size keeps on increasing.

i using es - 2.3.2.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -