Logging setup

I rarely look into my ElasticSearch server logs, but when trying to
debug a current issue (JVM crashes), I noticed that I have not been
looking in a while.

The wrapper is properly logging. In fact, those logs complain about
log4j not being setup:
INFO | jvm 1 | 2012/08/17 11:33:09 | log4j:WARN No appenders
could be found for logger (node).
INFO | jvm 1 | 2012/08/17 11:33:09 | log4j:WARN Please initialize
the log4j system properly.
INFO | jvm 1 | 2012/08/17 11:33:09 | log4j:WARN See
http://logging.apache.org/log4j/1.2/faq.html#noconfig for

Is logging.xml the file used for logging? I never had an issue before.
I am using the service wrapper, so I added the xml file to my
classpath. Here are some settings from my elasticsearch.conf file:

wrapper.java.classpath.4=/shared/elasticsearch-config/config/logging.xml
wrapper.java.additional.13=-Des.path.conf=/shared/elasticsearch-config/config/

The java process starts up with the correct classpath, but log4j still
complains. Not sure at what point I lost logging.

Cheers,

Ivan

--

Ivan,
I'm running elasticsearch-0.19.8 and It's using "config/logging.yml" not
.xml. There is no reference to it all in elasticsearch.conf.

Logan

On Friday, August 17, 2012 1:08:55 PM UTC-6, Ivan Brusic wrote:

I rarely look into my Elasticsearch server logs, but when trying to
debug a current issue (JVM crashes), I noticed that I have not been
looking in a while.

The wrapper is properly logging. In fact, those logs complain about
log4j not being setup:
INFO | jvm 1 | 2012/08/17 11:33:09 | log4j:WARN No appenders
could be found for logger (node).
INFO | jvm 1 | 2012/08/17 11:33:09 | log4j:WARN Please initialize
the log4j system properly.
INFO | jvm 1 | 2012/08/17 11:33:09 | log4j:WARN See
Apache log4j 1.2 - Frequently Asked Technical Questions for

Is logging.xml the file used for logging? I never had an issue before.
I am using the service wrapper, so I added the xml file to my
classpath. Here are some settings from my elasticsearch.conf file:

wrapper.java.classpath.4=/shared/elasticsearch-config/config/logging.xml
wrapper.java.additional.13=-Des.path.conf=/shared/elasticsearch-config/config/

The java process starts up with the correct classpath, but log4j still
complains. Not sure at what point I lost logging.

Cheers,

Ivan

--

Yup, that was it. Fat-fingered typing on my part. No wonder logging
stopped at some point. So many years of typing .xml that I did not
even spot the error. Thanks.

--
Ivan

On Sun, Aug 19, 2012 at 11:11 AM, Logan Hardy logan@tynt.com wrote:

Ivan,
I'm running elasticsearch-0.19.8 and It's using "config/logging.yml" not
.xml. There is no reference to it all in elasticsearch.conf.

Logan

On Friday, August 17, 2012 1:08:55 PM UTC-6, Ivan Brusic wrote:

I rarely look into my Elasticsearch server logs, but when trying to
debug a current issue (JVM crashes), I noticed that I have not been
looking in a while.

The wrapper is properly logging. In fact, those logs complain about
log4j not being setup:
INFO | jvm 1 | 2012/08/17 11:33:09 | log4j:WARN No appenders
could be found for logger (node).
INFO | jvm 1 | 2012/08/17 11:33:09 | log4j:WARN Please initialize
the log4j system properly.
INFO | jvm 1 | 2012/08/17 11:33:09 | log4j:WARN See
Apache log4j 1.2 - Frequently Asked Technical Questions for

Is logging.xml the file used for logging? I never had an issue before.
I am using the service wrapper, so I added the xml file to my
classpath. Here are some settings from my elasticsearch.conf file:

wrapper.java.classpath.4=/shared/elasticsearch-config/config/logging.xml

wrapper.java.additional.13=-Des.path.conf=/shared/elasticsearch-config/config/

The java process starts up with the correct classpath, but log4j still
complains. Not sure at what point I lost logging.

Cheers,

Ivan

--

--