# Problem with -Des.config and logging.yml

**URL:** <https://discuss.elastic.co/t/problem-with-des-config-and-logging-yml/4944>\
**Category:** Elasticsearch\
**Created:** [July 25, 2011, 6:13pm UTC](https://discuss.elastic.co/t/problem-with-des-config-and-logging-yml/4944 "2011-07-25T18:13:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![carlosjgf](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carlosjgf/32/3162_2.png) [@carlosjgf](https://discuss.elastic.co/u/carlosjgf)\
**Post date:** [July 25, 2011, 6:13pm UTC](https://discuss.elastic.co/t/problem-with-des-config-and-logging-yml/4944/1 "2011-07-25T18:13:26Z")

</div>

Hello

I have a problem with loggin.yml. If I launch elasticsearch -f, it  
uses elasticsearch.yml and logging.yml from the usual config  
directory. But if I use -Des.config to use a different  
elasticsearch.yml, it seems to no longer use config/logging.yml.

Is there some way to tell freeswitch to use a specific logging.yml in  
the same way you can use -Des.config to use a specific  
elasticsearch.yml?

Thank you

---

<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:** [July 26, 2011, 5:58am UTC](https://discuss.elastic.co/t/problem-with-des-config-and-logging-yml/4944/2 "2011-07-26T05:58:37Z")

</div>

Are you sure that thats the case? -Des.config only sets the exact path to  
the configuration file. Are you sure you are not setting by mistake the  
-Des.path.conf parameter?

On Mon, Jul 25, 2011 at 9:13 PM, CarlosJ [carlosj.gf@gmail.com](mailto:carlosj.gf@gmail.com) wrote:

> Hello
> 
> I have a problem with loggin.yml. If I launch elasticsearch -f, it  
> uses elasticsearch.yml and logging.yml from the usual config  
> directory. But if I use -Des.config to use a different  
> elasticsearch.yml, it seems to no longer use config/logging.yml.
> 
> Is there some way to tell freeswitch to use a specific logging.yml in  
> the same way you can use -Des.config to use a specific  
> elasticsearch.yml?
> 
> Thank you

---

<div class="post-metadata">

**Author:** ![carlosjgf](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carlosjgf/32/3162_2.png) [@carlosjgf](https://discuss.elastic.co/u/carlosjgf)\
**Post date:** [July 26, 2011, 3:26pm UTC](https://discuss.elastic.co/t/problem-with-des-config-and-logging-yml/4944/3 "2011-07-26T15:26:42Z")

</div>

Ok, I have done more tests and the "problem" was elasticsearch seems  
to be reading logging.yml from the CURRENT directory, and in case it  
is not there, in the standard directory. I had another version in my  
current directory, and it was been used instead of the main one. I  
suppose this is the expected behaviour.

Thank you,  
CarlosJ

On 26 jul, 07:58, Shay Banon [shay.ba...@elasticsearch.com](mailto:shay.ba...@elasticsearch.com) wrote:

> Are you sure that thats the case? -Des.config only sets the exact path to  
> the configuration file. Are you sure you are not setting by mistake the  
> -Des.path.conf parameter?
> 
> On Mon, Jul 25, 2011 at 9:13 PM, CarlosJ [carlosj...@gmail.com](mailto:carlosj...@gmail.com) wrote:
> 
> > Hello
> 
> > I have a problem with loggin.yml. If I launch elasticsearch -f, it  
> > uses elasticsearch.yml and logging.yml from the usual config  
> > directory. But if I use -Des.config to use a different  
> > elasticsearch.yml, it seems to no longer use config/logging.yml.
> 
> > Is there some way to tell freeswitch to use a specific logging.yml in  
> > the same way you can use -Des.config to use a specific  
> > elasticsearch.yml?
> 
> > Thank you

---

<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, 3:59am UTC](https://discuss.elastic.co/t/problem-with-des-config-and-logging-yml/4944/4 "2017-07-06T03:59:16Z")

</div>


