# One issue about elastic-docker

**URL:** <https://discuss.elastic.co/t/one-issue-about-elastic-docker/126035>\
**Category:** Elasticsearch\
**Created:** [March 29, 2018, 6:45am UTC](https://discuss.elastic.co/t/one-issue-about-elastic-docker/126035 "2018-03-29T06:45:50Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![yu2003w](https://avatars.discourse-cdn.com/v4/letter/y/2acd7d/32.png) [@yu2003w](https://discuss.elastic.co/u/yu2003w)\
**Post date:** [March 29, 2018, 6:45am UTC](https://discuss.elastic.co/t/one-issue-about-elastic-docker/126035/1 "2018-03-29T06:45:51Z")

</div>

Hi guys,  
I tried to launch elastic-docker images 6.2.2.  
I could configure path.data in elasticsearch.yml and mount to external directories.  
However, I failed to mount path.logs to external volumes.

Could path.logs in elastic-docker could be customized?

Thx.

---

<div class="post-metadata">

**Author:** ![Dvikas](https://avatars.discourse-cdn.com/v4/letter/d/a9adbd/32.png) [@Dvikas](https://discuss.elastic.co/u/Dvikas)\
**Post date:** [March 29, 2018, 6:51am UTC](https://discuss.elastic.co/t/one-issue-about-elastic-docker/126035/2 "2018-03-29T06:51:24Z")

</div>

yup you can very well do that.Provide the path where you want to store the logs,  
for eg:your elasticsearch is at home/etc/elasticsearch and you want to store in home/etc/logs.then please you can provide the path in path.logs: home/etc/logs.After running the elasticsearch you can go to home/etc/logs and can check the logs.🙂

---

<div class="post-metadata">

**Author:** ![yu2003w](https://avatars.discourse-cdn.com/v4/letter/y/2acd7d/32.png) [@yu2003w](https://discuss.elastic.co/u/yu2003w)\
**Post date:** [March 29, 2018, 6:55am UTC](https://discuss.elastic.co/t/one-issue-about-elastic-docker/126035/3 "2018-03-29T06:55:39Z")

</div>

I tried that. I configured path.logs as /usr/share/elasticsearch/es/logs/.  
After launching container, elasticsearch is installed in /usr/share/elasticsearch.  
And logs is still written to /usr/share/elasticsearch/logs rather than directory "es/logs".

---

<div class="post-metadata">

**Author:** ![Dvikas](https://avatars.discourse-cdn.com/v4/letter/d/a9adbd/32.png) [@Dvikas](https://discuss.elastic.co/u/Dvikas)\
**Post date:** [March 29, 2018, 8:44am UTC](https://discuss.elastic.co/t/one-issue-about-elastic-docker/126035/4 "2018-03-29T08:44:02Z")

</div>

So you mean you are creating a directory inside the elasticsearch itself.Please try to make in /usr/share/es/logs and then check.I am sure its gonna work.

---

<div class="post-metadata">

**Author:** ![yu2003w](https://avatars.discourse-cdn.com/v4/letter/y/2acd7d/32.png) [@yu2003w](https://discuss.elastic.co/u/yu2003w)\
**Post date:** [March 29, 2018, 9:02am UTC](https://discuss.elastic.co/t/one-issue-about-elastic-docker/126035/5 "2018-03-29T09:02:00Z")

</div>

Tried again. This time path.logs configured as /usr/share/es/logs rather than /usr/share/elasticsearch/es/logs.  
However, it didn't work. Logs is still written to /usr/share/elasticsearch/logs.  
The image I used is 6.2.2.

Thanks for your kindly help.

---

<div class="post-metadata">

**Author:** ![Dvikas](https://avatars.discourse-cdn.com/v4/letter/d/a9adbd/32.png) [@Dvikas](https://discuss.elastic.co/u/Dvikas)\
**Post date:** [March 29, 2018, 10:21am UTC](https://discuss.elastic.co/t/one-issue-about-elastic-docker/126035/6 "2018-03-29T10:21:21Z")

</div>

[https://www.elastic.co/guide/en/elasticsearch/reference/current/settings.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/settings.html)  
path.logs: /var/log/elasticsearch .

---

<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:** [April 26, 2018, 10:21am UTC](https://discuss.elastic.co/t/one-issue-about-elastic-docker/126035/7 "2018-04-26T10:21:51Z")

</div>

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