# How to modify logging.yml so that no daily file is created?

**URL:** <https://discuss.elastic.co/t/how-to-modify-logging-yml-so-that-no-daily-file-is-created/16205>\
**Category:** Elasticsearch\
**Created:** [March 6, 2014, 5:48pm UTC](https://discuss.elastic.co/t/how-to-modify-logging-yml-so-that-no-daily-file-is-created/16205 "2014-03-06T17:48:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jerrac](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jerrac/32/52980_2.png) [@jerrac](https://discuss.elastic.co/u/jerrac)\
**Post date:** [March 6, 2014, 5:48pm UTC](https://discuss.elastic.co/t/how-to-modify-logging-yml-so-that-no-daily-file-is-created/16205/1 "2014-03-06T17:48:07Z")

</div>

I've tried to configure logrotate to just zip up the daily files that  
elasticsearch creates, but I just can't figure out how...

So, I thought I'd configure elasticsearch to just use one file and not  
create daily files. That way logrotate can deal with rotation.

In logging.yml I see:

appender:

> console:  
> type: console  
> layout:  
> type: consolePattern  
> conversionPattern: "[%d{ISO8601}][%-5p][%-25c] %m%n"  
> file:  
> type: dailyRollingFile  
> file: ${path.logs}/${cluster.name}.log  
> datePattern: "'.'yyyy-MM-dd"  
> layout:  
> type: pattern  
> conversionPattern: "[%d{ISO8601}][%-5p][%-25c] %m%n"  
> index\_search\_slow\_log\_file:  
> type: dailyRollingFile  
> file: ${path.logs}/${cluster.name}\_index\_search\_slowlog.log  
> datePattern: "'.'yyyy-MM-dd"  
> layout:  
> type: pattern  
> conversionPattern: "[%d{ISO8601}][%-5p][%-25c] %m%n"  
> index\_indexing\_slow\_log\_file:  
> type: dailyRollingFile  
> file: ${path.logs}/${cluster.name}\_index\_indexing\_slowlog.log  
> datePattern: "'.'yyyy-MM-dd"  
> layout:  
> type: pattern  
> conversionPattern: "[%d{ISO8601}][%-5p][%-25c] %m%n"

I assume that I would change type: dailyRollingFile to something else. I've  
searched both the elasticsearch and log4j docs, but I haven't figured out  
where they show what options are valid. So, what options should I set to  
make elasticsearch only use one file for each of the configured log files?

I'm running version 0.90.9.

Thanks!

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/ca0831f5-2cfb-4b01-9690-e6fdbcea953e%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/ca0831f5-2cfb-4b01-9690-e6fdbcea953e%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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 6, 2017, 1:45am UTC](https://discuss.elastic.co/t/how-to-modify-logging-yml-so-that-no-daily-file-is-created/16205/2 "2017-07-06T01:45:15Z")

</div>


