we still only get INFO level messages (other category DEBUG show up in the log).
Please help this is extremely frustrating trying to trouble shoot connectivity issues for the TransportClient!
You can't set Elasticsearch logging from jboss-logging.xml
Elasticsearch uses log4j and is using an internal log4j configurator.
Unfortunately, the TransportClient is missing log configuration.
To configure logging for the TransportClient, try the following steps:
copy your custom log4j configuration settings into a file logging.yml
(optionally logging.json or logging.properties)
take the Settings object from the TransportClient initialization, and add
a path.conf setting to the directory where you have placed the file from
the previous step
after TransportClient initialization, add a line
LogConfigurator.configure(settings); in your code. The LogConfigurator is
in the package org.elasticsearch.common.logging.log4j
Do not forget to add log4j (optionally slf4j-log4j) to your classpath.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.