# Can't configure logging.yml

**URL:** <https://discuss.elastic.co/t/cant-configure-logging-yml/13025>\
**Category:** Elasticsearch\
**Created:** [August 1, 2013, 1:21am UTC](https://discuss.elastic.co/t/cant-configure-logging-yml/13025 "2013-08-01T01:21:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zoran\_Jeremic](https://avatars.discourse-cdn.com/v4/letter/z/7ba0ec/32.png) [@Zoran\_Jeremic](https://discuss.elastic.co/u/Zoran_Jeremic)\
**Post date:** [August 1, 2013, 1:21am UTC](https://discuss.elastic.co/t/cant-configure-logging-yml/13025/1 "2013-08-01T01:21:05Z")

</div>

Hi,

I'm trying to stop elasticsearch to output logs to the console, but it  
seems that it can't find logging.yml or some other problem exists. In  
logging.yml I was trying to delete console from rootLogger: INFO, console,  
file but it doesn't have effect. My client is initialized as follow:

ElasticSearchConfig elasticSearchConfig=Settings.getInstance().config.  
elasticSearch;  
String dataDirectory = elasticSearchConfig.homePath;  
ImmutableSettings.Builder elasticsearchSettings = ImmutableSettings.  
settingsBuilder()  
.put("http.enabled", "false")  
.put("path.conf", ElasticSearchFactory.class.  
getClassLoader().getResource("config/").getFile())  
.put("cluster.name", elasticSearchConfig.clusterName)  
.put("path.data", dataDirectory);

```
   Node node = nodeBuilder().local(true)
            .settings(elasticsearchSettings.build()).client(false).data(

```

true)  
.node();  
Client client = node.client();

The path to the logging.yml is good.  
Is there anything else I should check or configure in order to make this  
work?

Thanks

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 2:23am UTC](https://discuss.elastic.co/t/cant-configure-logging-yml/13025/2 "2017-07-06T02:23:27Z")

</div>


