# Not able to get log files daily for elasticsearch

**URL:** <https://discuss.elastic.co/t/not-able-to-get-log-files-daily-for-elasticsearch/153542>\
**Category:** Elasticsearch\
**Created:** [October 23, 2018, 8:16am UTC](https://discuss.elastic.co/t/not-able-to-get-log-files-daily-for-elasticsearch/153542 "2018-10-23T08:16:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dharmesh](https://avatars.discourse-cdn.com/v4/letter/d/58956e/32.png) [@dharmesh](https://discuss.elastic.co/u/dharmesh)\
**Post date:** [October 23, 2018, 8:16am UTC](https://discuss.elastic.co/t/not-able-to-get-log-files-daily-for-elasticsearch/153542/1 "2018-10-23T08:16:59Z")

</div>

OS: Centos  
ELaticsearch Version: 2.2.2  
Content of logging.yml  
file:  
type: dailyRollingFile  
file: ${path.logs}/${cluster.name}.log  
datePattern: "'.'yyyy-MM-dd"  
layout:  
type: pattern  
conversionPattern: "[%d{ISO8601}][%-5p][%-25c] %.10000m%n"

I can see logs at /var/log/elasticsearch but it is not daily. It is generating files on random days.

Can anyone faced this issue?

---

<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:** [November 20, 2018, 8:19am UTC](https://discuss.elastic.co/t/not-able-to-get-log-files-daily-for-elasticsearch/153542/2 "2018-11-20T08:19:57Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
