# Logging does not work

**URL:** <https://discuss.elastic.co/t/logging-does-not-work/35323>\
**Category:** Elasticsearch\
**Created:** [November 23, 2015, 3:50pm UTC](https://discuss.elastic.co/t/logging-does-not-work/35323 "2015-11-23T15:50:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gun146](https://avatars.discourse-cdn.com/v4/letter/g/f4b2a3/32.png) [@gun146](https://discuss.elastic.co/u/gun146)\
**Post date:** [November 23, 2015, 3:50pm UTC](https://discuss.elastic.co/t/logging-does-not-work/35323/1 "2015-11-23T15:50:20Z")

</div>

I upgraded my elasticsearch node from 1.5.1 to 1.7.3.  
Logging.yml file has not changed.  
But i dont see any new records in elasticsearch.log since upgrade.

When starting elasticsearch daemon, this message appears:

log4j:WARN No appenders could be found for logger (common).  
log4j:WARN Please initialize the log4j system properly.  
log4j:WARN See [http://logging.apache.org/log4j/1.2/faq.html#noconfig](http://logging.apache.org/log4j/1.2/faq.html#noconfig) for more info.

I also copied elasticsearch.yml and logging.yml in $ES\_HOME/config/ folder.  
This did not help.

How can i see my log messages?

---

<div class="post-metadata">

**Author:** ![nik9000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nik9000/32/44947_2.png) [@nik9000](https://discuss.elastic.co/u/nik9000)\
**Post date:** [November 23, 2015, 4:04pm UTC](https://discuss.elastic.co/t/logging-does-not-work/35323/2 "2015-11-23T16:04:16Z")

</div>

Its really impossible to tell what is up without looking at your system. It works for most folks.

I'd debug this by checking the command line parameters that are passed to `java` when running elasticsearch.

---

<div class="post-metadata">

**Author:** ![gun146](https://avatars.discourse-cdn.com/v4/letter/g/f4b2a3/32.png) [@gun146](https://discuss.elastic.co/u/gun146)\
**Post date:** [November 23, 2015, 5:41pm UTC](https://discuss.elastic.co/t/logging-does-not-work/35323/3 "2015-11-23T17:41:34Z")

</div>

I checked /etc/init.d/elasticsearch script and found this java option  
-Des.default.path.logs=$LOG\_DIR

Somehow LOG\_DIR variable was empty. I set it to /var/log/elasticsearch/ and it solved the problem.

---

<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 5, 2017, 11:36pm UTC](https://discuss.elastic.co/t/logging-does-not-work/35323/4 "2017-07-05T23:36:30Z")

</div>


