How to set up Search Slow Log for embedded ES

Hi.

Im trying to configure the Search Slow Log for our Java application which
is running Elasticsearch embedded, but Im a bit confused on how to activate
it.
Is it correct that the logging.yml file is not considered? Do anyone have
an example setup for e.g tomcat if I have to set it up in the tomcat
logging.properties? We are using java.util.logging

mvh

Runar Myklebust

Why not configure it via Java API?

BTW: you'll need to configure this in elasticsearch.yml

https://github.com/elasticsearch/elasticsearch/blob/master/config/elasticsearch.yml

Peter.

On 17 Jan., 12:49, Runar Myklebust ru...@myklebust.me wrote:

Hi.

Im trying to configure the Search Slow Log for our Java application which
is running Elasticsearch embedded, but Im a bit confused on how to activate
it.
Is it correct that the logging.yml file is not considered? Do anyone have
an example setup for e.g tomcat if I have to set it up in the tomcat
logging.properties? We are using java.util.logging

mvh

Runar Myklebust

Hi, thanks for the answer.

But, Im not shure i understand what you mean? Configure via Java API and
elasticsearch.yml? Can you ellaborate a bit?

On Wed, Jan 18, 2012 at 10:30 AM, Karussell tableyourtime@googlemail.comwrote:

Why not configure it via Java API?

BTW: you'll need to configure this in elasticsearch.yml

https://github.com/elasticsearch/elasticsearch/blob/master/config/elasticsearch.yml

Peter.

On 17 Jan., 12:49, Runar Myklebust ru...@myklebust.me wrote:

Hi.

Im trying to configure the Search Slow Log for our Java application which
is running Elasticsearch embedded, but Im a bit confused on how to
activate
it.
Is it correct that the logging.yml file is not considered? Do anyone have
an example setup for e.g tomcat if I have to set it up in the tomcat
logging.properties? We are using java.util.logging

mvh

Runar Myklebust

--
mvh

Runar Myklebust

When running embedded, the slow log is simply logged under the
org.elasticsearch.index.search.slowlog category. The configuration for
log4j simply states not to include the slowlog logging into the same main
logging file, but into a separate log file. Not sure how to do that with
tomcat.

On Wed, Jan 18, 2012 at 1:45 PM, Runar Myklebust runar@myklebust.me wrote:

Hi, thanks for the answer.

But, Im not shure i understand what you mean? Configure via Java API and
elasticsearch.yml? Can you ellaborate a bit?

On Wed, Jan 18, 2012 at 10:30 AM, Karussell tableyourtime@googlemail.comwrote:

Why not configure it via Java API?

BTW: you'll need to configure this in elasticsearch.yml

https://github.com/elasticsearch/elasticsearch/blob/master/config/elasticsearch.yml

Peter.

On 17 Jan., 12:49, Runar Myklebust ru...@myklebust.me wrote:

Hi.

Im trying to configure the Search Slow Log for our Java application
which
is running Elasticsearch embedded, but Im a bit confused on how to
activate
it.
Is it correct that the logging.yml file is not considered? Do anyone
have
an example setup for e.g tomcat if I have to set it up in the tomcat
logging.properties? We are using java.util.logging

mvh

Runar Myklebust

--
mvh

Runar Myklebust