# Rolling files based on SizeBasedTriggeringPolicy

**URL:** https://discuss.elastic.co/t/rolling-files-based-on-sizebasedtriggeringpolicy/38658
**Category:** Elasticsearch
**Created:** [January 7, 2016, 5:03pm UTC](https://discuss.elastic.co/t/rolling-files-based-on-sizebasedtriggeringpolicy/38658 "2016-01-07T17:03:52Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![chiremat](https://avatars.discourse-cdn.com/v4/letter/c/8edcca/32.png) [@chiremat](https://discuss.elastic.co/u/chiremat)
#### Post date: [January 7, 2016, 5:03pm UTC](https://discuss.elastic.co/t/rolling-files-based-on-sizebasedtriggeringpolicy/38658/1 "2016-01-07T17:03:52Z")

</div>

Hello,

we are using Elasticsearch 1.6 and have configured in the logging.yml a logger which compresses a log file when it achieves a maximal size of 50MB:

file:  
type: extrasRollingFile  
file: ${path.logs}/${[cluster.name](http://cluster.name)}.log  
rollingPolicy: timeBased  
rollingPolicy.FileNamePattern: ${path.logs}/${[cluster.name](http://cluster.name)}.%d{yyyy-MM-dd}.gz.log  
triggeringPolicy: sizeBased  
triggeringPolicy.maxFileSize: 50000000  
layout:  
type: pattern  
conversionPattern: "[%d{ISO8601}][%-5p][%-25c] %m%n"

However i dont see the rolling of files happen when it crosses 50MB.

Is anything is missing in above configuration? please advice.

thanks in advance,  
Chandrashekhar

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [July 5, 2017, 11:26pm UTC](https://discuss.elastic.co/t/rolling-files-based-on-sizebasedtriggeringpolicy/38658/2 "2017-07-05T23:26:19Z")

</div>


