# Ability to specify logging file location

**URL:** <https://discuss.elastic.co/t/ability-to-specify-logging-file-location/3630>\
**Category:** Elasticsearch\
**Created:** [December 5, 2010, 9:29pm UTC](https://discuss.elastic.co/t/ability-to-specify-logging-file-location/3630 "2010-12-05T21:29:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rs1050](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rs1050/32/2988_2.png) [@rs1050](https://discuss.elastic.co/u/rs1050)\
**Post date:** [December 5, 2010, 9:29pm UTC](https://discuss.elastic.co/t/ability-to-specify-logging-file-location/3630/1 "2010-12-05T21:29:23Z")

</div>

Hi,

I looked at the code of elasticsearch, I could not find a way to provide custom logging configuraiton file location. Instead of modifying the installation directory logging config file, I would like to be able to specify -D property with the custom logging file location, similar to how one can profile custom config file:

elasticsearch -f -Des.config=/path/to/config/file

Thank you.  
RS.

---

<div class="post-metadata">

**Author:** ![rs1050](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rs1050/32/2988_2.png) [@rs1050](https://discuss.elastic.co/u/rs1050)\
**Post date:** [December 5, 2010, 9:31pm UTC](https://discuss.elastic.co/t/ability-to-specify-logging-file-location/3630/2 "2010-12-05T21:31:10Z")

</div>

the title of the post is a bit confusing, apologies. I know how to configure log directory; I meant ability to point to a custom logger configuration file, not the custom log directory.

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [December 7, 2010, 11:49pm UTC](https://discuss.elastic.co/t/ability-to-specify-logging-file-location/3630/3 "2010-12-07T23:49:28Z")

</div>

You can set a path to the config _directory_, and there set your logging file and other configuration files. See here: [http://www.elasticsearch.com/docs/elasticsearch/setup/dirlayout/](http://www.elasticsearch.com/docs/elasticsearch/setup/dirlayout/).  
On Sunday, December 5, 2010 at 11:29 PM, rs1050 wrote:

> Hi,
> 
> I looked at the code of elasticsearch, I could not find a way to provide  
> custom logging configuraiton file location. Instead of modifying the  
> installation directory logging config file, I would like to be able to  
> specify -D property with the custom logging file location, similar to how  
> one can profile custom config file:
> 
> elasticsearch -f -Des.config=/path/to/config/file
> 
> ## Thank you. RS.
> 
> View this message in context: [http://elasticsearch-users.115913.n3.nabble.com/ability-to-specify-logging-file-location-tp2024125p2024125.html](http://elasticsearch-users.115913.n3.nabble.com/ability-to-specify-logging-file-location-tp2024125p2024125.html)  
> Sent from the Elasticsearch Users mailing list archive at [Nabble.com](http://Nabble.com).

---

<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, 4:15am UTC](https://discuss.elastic.co/t/ability-to-specify-logging-file-location/3630/4 "2017-07-06T04:15:35Z")

</div>


