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.
For more options, visit https://groups.google.com/groups/opt_out.