# Yum installed ES uses unexpected data and log directories

**URL:** <https://discuss.elastic.co/t/yum-installed-es-uses-unexpected-data-and-log-directories/22484>\
**Category:** Elasticsearch\
**Created:** [March 3, 2015, 10:25am UTC](https://discuss.elastic.co/t/yum-installed-es-uses-unexpected-data-and-log-directories/22484 "2015-03-03T10:25:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gorge\_Albrecht](https://avatars.discourse-cdn.com/v4/letter/g/d6d6ee/32.png) [@Gorge\_Albrecht](https://discuss.elastic.co/u/Gorge_Albrecht)\
**Post date:** [March 3, 2015, 10:25am UTC](https://discuss.elastic.co/t/yum-installed-es-uses-unexpected-data-and-log-directories/22484/1 "2015-03-03T10:25:52Z")

</div>

Hi All,

I just installed ES with yum install elasticsearch on RHEL 6.6.

Due to  
[http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/setup-dir-layout.html](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/setup-dir-layout.html)  
I expected ES to store logs in /var/log/elasticsearch which has been  
created by yum install.  
But instead logs are stored in /usr/share/elasticsearch/logs.

The same goes for data which are stored in /usr/share/elasticsearch/data  
instead of /var/lib/elasticsearch.

Configuration in /etc/elasticsearch/elasticsearch.yml is default except for  
cluster.name, i.e. no path.logs nor path.data configured

Am I missing something?  
Thanks in advance,  
Görge

--  
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/8f778bc4-cbe9-4b9b-824e-38954d031e4b%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/8f778bc4-cbe9-4b9b-824e-38954d031e4b%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![jprante](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jprante/32/44941_2.png) [@jprante](https://discuss.elastic.co/u/jprante)\
**Post date:** [March 3, 2015, 11:11am UTC](https://discuss.elastic.co/t/yum-installed-es-uses-unexpected-data-and-log-directories/22484/2 "2015-03-03T11:11:02Z")

</div>

I have also encountered these peculiarities (and some other things) on the  
ES RPM on RHEL 6.6 and I decided to use the tar.gz distribution instead,  
which I unpack into the /opt directory.

Storing application data in /usr/share is definitely a packaging problem.  
/var/lib is only for transient and temporary files, in particular for state  
information. This directory is often much to small in installations to keep  
huge persistent Lucene indexes.

FYI there is a Fedora 23 package on the way improving some of the packaging  
problems, from which I suppose it will sooner or later end up in EPEL

[http://pkgs.fedoraproject.org/cgit/elasticsearch.git/](http://pkgs.fedoraproject.org/cgit/elasticsearch.git/)  
[http://koji.fedoraproject.org/koji/rpminfo?rpmID=6005107](http://koji.fedoraproject.org/koji/rpminfo?rpmID=6005107)

But this package is also not sufficient for my purposes.

Jörg

On Tue, Mar 3, 2015 at 11:25 AM, Görge Albrecht [goerge.albrecht@gmail.com](mailto:goerge.albrecht@gmail.com)  
wrote:

> Hi All,
> 
> I just installed ES with yum install elasticsearch on RHEL 6.6.
> 
> Due to  
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/setup-dir-layout.html)  
> I expected ES to store logs in /var/log/elasticsearch which has been  
> created by yum install.  
> But instead logs are stored in /usr/share/elasticsearch/logs.
> 
> The same goes for data which are stored in /usr/share/elasticsearch/data  
> instead of /var/lib/elasticsearch.
> 
> Configuration in /etc/elasticsearch/elasticsearch.yml is default except  
> for cluster.name, i.e. no path.logs nor path.data configured
> 
> Am I missing something?  
> Thanks in advance,  
> Görge
> 
> --  
> 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/8f778bc4-cbe9-4b9b-824e-38954d031e4b%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/8f778bc4-cbe9-4b9b-824e-38954d031e4b%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/8f778bc4-cbe9-4b9b-824e-38954d031e4b%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/8f778bc4-cbe9-4b9b-824e-38954d031e4b%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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/CAKdsXoH-rG0KQCMaCoZv%3D%3DdXzAHKO9yS8UYeo6qi4Qrd%3DqEPCg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAKdsXoH-rG0KQCMaCoZv%3D%3DdXzAHKO9yS8UYeo6qi4Qrd%3DqEPCg%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 12:28am UTC](https://discuss.elastic.co/t/yum-installed-es-uses-unexpected-data-and-log-directories/22484/3 "2017-07-06T00:28:57Z")

</div>


