Is there any way to hook up to ES and listed for slow queries? By slow
queries I mean http://www.elasticsearch.org/guide/reference/index-modules/slowlog.html .
I'd love to be able to have some sort of a listener and do something
custom (e.g. log elsewhere, index, analyze, rewrite, etc.) with slow
queries.
If there is no way to do that, should I open an issue?
Slow queries are logged by a standard ES logger. The logging.xml file
configures this logger to use DailyRollingFileAppender to log slow query
messages to a separate file. You can replace DailyRollingFileAppender with
your own custom appender by adding your appender to the elasticsearch
classpath and specifying your appender's class name in
On Thursday, April 26, 2012 3:47:21 PM UTC-4, Otis Gospodnetic wrote:
Hello,
Is there any way to hook up to ES and listed for slow queries? By slow
queries I mean Elasticsearch Platform — Find real-time answers at scale | Elastic .
I'd love to be able to have some sort of a listener and do something
custom (e.g. log elsewhere, index, analyze, rewrite, etc.) with slow
queries.
If there is no way to do that, should I open an issue?
As igore pointed out, an appender is the only way to go. We could allow for
plugins to register custom listeners for it.
On Sat, Apr 28, 2012 at 8:24 AM, Igor Motov imotov@gmail.com wrote:
Otis,
Slow queries are logged by a standard ES logger. The logging.xml file
configures this logger to use DailyRollingFileAppender to log slow query
messages to a separate file. You can replace DailyRollingFileAppender with
your own custom appender by adding your appender to the elasticsearch
classpath and specifying your appender's class name in
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.