# Elastic still logs into defaut log file and path

**URL:** <https://discuss.elastic.co/t/elastic-still-logs-into-defaut-log-file-and-path/236877>\
**Category:** Elasticsearch\
**Created:** [June 12, 2020, 11:23am UTC](https://discuss.elastic.co/t/elastic-still-logs-into-defaut-log-file-and-path/236877 "2020-06-12T11:23:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kosodrom](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kosodrom/32/99278_2.png) [@Kosodrom](https://discuss.elastic.co/u/Kosodrom)\
**Post date:** [June 12, 2020, 11:23am UTC](https://discuss.elastic.co/t/elastic-still-logs-into-defaut-log-file-and-path/236877/1 "2020-06-12T11:23:06Z")

</div>

Hi guys,

I have set in the elasticsearch.yml:

```
path.logs: /home/user/var/log/elasticsearch

```

Now elastic does the logs twice! In the var/log/elasticsearch folder i have all the log files and in the `/bin/elasticsearch/logs/` there is also a single log file which contains the exact same information.

How can i completely disable the elastic to log in it's default path `/bin/elasticsearch/logs`?

---

<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 10, 2020, 11:23am UTC](https://discuss.elastic.co/t/elastic-still-logs-into-defaut-log-file-and-path/236877/2 "2020-07-10T11:23:08Z")

</div>

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